Skip to content

Commit

Permalink
feat: 增加页面底部备案信息展示 (#6)
Browse files Browse the repository at this point in the history
* style: 调整分页区域样式

* feat: 增加页面底部备案信息展示
  • Loading branch information
wan92hen authored Apr 25, 2023
1 parent aab4727 commit 03fb2fb
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
17 changes: 17 additions & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,21 @@ spec:
name: index_notice_content
label: 首页公告内容
value: '一款 Terminal 风格的 Halo 主题。'
- group: beian
label: 备案设置
formSchema:
- $formkit: text
name: icp_text
label: ICP备案号
- $formkit: text
name: icp_link
label: ICP备案跳转链接
value: https://beian.miit.gov.cn/
- $formkit: text
name: gongan_text
label: 公安备案号
- $formkit: text
name: gongan_link
label: 公安备案跳转链接
value: https://www.beian.gov.cn/

17 changes: 16 additions & 1 deletion src/styles/footer.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
@import "variables";

.footer {
padding: 40px 0;
padding: 40px 0 0 0;
flex-grow: 0;
opacity: .5;

&__inner {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
margin: 0;
Expand Down Expand Up @@ -61,4 +62,18 @@
font-size: 0.75rem;
}
}
.beian {
display: flex;
flex-direction: row;
justify-content: center;
flex-basis: 100%;
align-items: center;
font-size: 1rem;
color: var(--light-color-secondary);

span {
padding: 0 8px;
}

}
}
23 changes: 22 additions & 1 deletion templates/modules/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
<footer class="footer">
<div class="footer__inner">
<div class="copyright">
<span>© 2022 Powered by <a href="https://halo.run/">Halo</a></span>
<span
>© <span th:text="${#dates.year(#dates.createNow())}">2023</span> Powered by
<a href="https://halo.run/">Halo</a></span
>

<span>:: Theme <a href="https://github.com/wan92hen/theme-terminal">Terminal</a></span>
</div>
<div class="beian">
<span>
<a
href="https://beian.miit.gov.cn/"
target="_blank"
th:href="${theme.config.beian.icp_link}"
th:text="${theme.config.beian.icp_text}"
></a
></span>
<span>
<a
href="https://www.beian.gov.cn/"
target="_blank"
th:href="${theme.config.beian.gongan_link}"
th:text="${theme.config.beian.gongan_text}"
></a
></span>
</div>
</div>
</footer>

0 comments on commit 03fb2fb

Please sign in to comment.