mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 20:22:41 +00:00
✨ Feat: add public network security config (only in China) (#15)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
- :tada: Feat: add PWA support
|
||||
- :tada: Feat: add Watermark support ([#16](https://github.com/Lruihao/FixIt/issues/16))
|
||||
- :sparkles: Feat: add public network security config (only in China) ([#15](https://github.com/Lruihao/FixIt/issues/15))
|
||||
- :bug: Fix: add scroll-margin to headerlink
|
||||
- :bug: Fix: Check if content is empty beforing passing
|
||||
- :bug: Fix: toc-auto display error ([#21](https://github.com/Lruihao/FixIt/issues/21))
|
||||
|
||||
@@ -75,15 +75,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.copyright {
|
||||
.copyright-line {
|
||||
.icp-splitter {
|
||||
display: none;
|
||||
}
|
||||
.icp-br {
|
||||
display: block;
|
||||
}
|
||||
|
||||
footer{
|
||||
.footer-container {
|
||||
font-size: .618rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
footer {
|
||||
height: 2rem;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
line-height: 1.25rem;
|
||||
@@ -11,13 +11,12 @@ footer {
|
||||
.footer-line {
|
||||
width: 100%;
|
||||
|
||||
.icp-br {
|
||||
display: none;
|
||||
.footer-divider::before {
|
||||
content: '|';
|
||||
margin-left: .25rem;
|
||||
margin-right: .25rem;
|
||||
}
|
||||
|
||||
.fa-ban {
|
||||
color: Tomato;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -646,7 +646,7 @@ enableEmoji = true
|
||||
# 网站图片, 用于 Open Graph 和 Twitter Cards
|
||||
images = ["/logo.png"]
|
||||
# enable PWA since v0.2.12
|
||||
# 开启 PWA 支持(>v0.2.12 版本)
|
||||
# 开启 PWA 支持 since v0.2.12
|
||||
enablePWA = true
|
||||
|
||||
# Header config
|
||||
@@ -696,6 +696,9 @@ enableEmoji = true
|
||||
# site creation time
|
||||
# 网站创立年份
|
||||
since = 2019
|
||||
# Public network security only in China (HTML format is supported) since v0.2.12
|
||||
# 公网安备信息,仅在中国使用 (支持 HTML 格式) since v0.2.12
|
||||
gov = ""
|
||||
# ICP info only in China (HTML format is supported)
|
||||
# ICP 备案信息,仅在中国使用 (支持 HTML 格式)
|
||||
icp = ""
|
||||
@@ -975,7 +978,7 @@ enableEmoji = true
|
||||
|
||||
# Watermark config since v0.2.12
|
||||
# Detail config see https://github.com/Lruihao/watermark#readme
|
||||
# 水印配置
|
||||
# 水印配置 since v0.2.12
|
||||
# 详细参数见 https://github.com/Lruihao/watermark#readme
|
||||
[params.watermark]
|
||||
enable = true
|
||||
|
||||
@@ -10,13 +10,10 @@
|
||||
{{- /* Hugo and FixIt */ -}}
|
||||
{{- if ne .Site.Params.footer.hugo false -}}
|
||||
<div class="footer-line">
|
||||
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %v">Hugo</a>` hugo.Version -}}
|
||||
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="external nofollow noopener noreffer" title="Hugo %v">Hugo</a>` hugo.Version -}}
|
||||
{{- $theme := .Scratch.Get "version" | printf
|
||||
`<a href="https://github.com/Lruihao/FixIt" target="_blank" rel="noopener noreffer" title="FixIt %v">
|
||||
<i class="fa-stack fa-xs">
|
||||
<i class="fas fa-bug fa-stack-1x"></i>
|
||||
<i class="fas fa-ban fa-stack-2x"></i>
|
||||
</i>
|
||||
`<a href="https://github.com/Lruihao/FixIt" target="_blank" rel="external nofollow noopener noreffer" title="FixIt %v">
|
||||
<i class="fa-stack fa-xs logo"><i class="fas fa-bug fa-stack-1x"></i><i class="fas fa-ban fa-stack-2x"></i></i>
|
||||
FixIt
|
||||
</a>` -}}
|
||||
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
|
||||
@@ -43,13 +40,19 @@
|
||||
|
||||
{{- /* License */ -}}
|
||||
{{- with .Site.Params.footer.license -}}
|
||||
| <span class="license">{{ . | safeHTML }}</span>
|
||||
<span class="license footer-divider">{{ . | safeHTML }}</span>
|
||||
{{- end -}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-line">
|
||||
{{- /* GOV */ -}}
|
||||
{{- with .Site.Params.footer.gov -}}
|
||||
<span class="gov">{{ . | safeHTML }}</span>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* ICP */ -}}
|
||||
{{- with .Site.Params.footer.icp -}}
|
||||
<span class="icp-splitter"> | </span><br class="icp-br"/>
|
||||
<span class="icp">{{ . | safeHTML }}</span>
|
||||
<span class="icp footer-divider">{{ . | safeHTML }}</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user