Files
Home-of-CS/themes/stack-customized/layouts/partials/footer/footer.html
T
2026-04-23 13:39:28 +08:00

28 lines
1.5 KiB
HTML

{{- $ThemeVersion := "3.32.0" -}}
<footer class="site-footer">
<section class="copyright">
&copy;
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
{{ .Site.Params.footer.since }} -
{{ end }}
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
</section>
<section class="powerby">
{{ with .Site.Params.footer.customText }}
{{ . | safeHTML }} <br/>
{{ end }}
{{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
{{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
{{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
{{- $ICP := `<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener"><u>京ICP备2026002012号</u></a>` -}}
{{- $MPS := `<img src="/beian.png" width="15" alt="公安备案"/> <a href="https://beian.mps.gov.cn/#/query/webSearch?code=11010802047341" rel="noopener noreferrer" target="_blank"><u>京公网安备11010802047341号</u></a>` -}}
{{ T "footer.builtWith" (dict "Generator" $Generator) | safeHTML }} <br />
{{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}<br />
{{ $ICP | safeHTML }}<br />
{{ $MPS | safeHTML }}
</section>
</footer>