mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-17 19:43:30 +08:00
59 lines
2.9 KiB
HTML
59 lines
2.9 KiB
HTML
{{- $ThemeVersion := "3.30.0" -}}
|
|
<footer class="site-footer">
|
|
<!---
|
|
<section class="copyright">
|
|
©
|
|
{{ 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>
|
|
-->
|
|
<!-- Add total page and word count time -->
|
|
|
|
<div>
|
|
<p id="footer-sponsor"><a href="https://www.rainyun.com/?ref=MjEwOTk=" target="_blank" alt="Server Sponsor" rel="nofollow"><img src="https://blog.sakurasen.cn/src/rainyun.svg" alt="Server Sponsor" style="height: 2em;"> <a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" alt="Theme Sponsor" rel="nofollow"><img src="https://blog.sakurasen.cn/src/Stack.svg" alt="Theme Sponsor" style="height: 2em;"></a> <a href="https://gohugo.io/" target="_blank" alt="Theme Sponsor" rel="nofollow"><img src="https://blog.sakurasen.cn/src/hugo.svg" alt="Blog SyStem Sponsor" style="height: 2em;"></a></p>
|
|
</div>
|
|
<!---
|
|
<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>` -}}
|
|
|
|
{{ T "footer.builtWith" (dict "Generator" $Generator) | safeHTML }} <br />
|
|
{{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
|
|
</section>
|
|
-->
|
|
<section class="totalcount">
|
|
{{ $scratch := newScratch }}
|
|
{{ range where .Site.Pages "Kind" "page" }}
|
|
{{ $scratch.Add "total" .WordCount }}
|
|
{{ end }}
|
|
|
|
{{ $postCount := len (where .Site.RegularPages "Section" "post") }}
|
|
{{ $totalWords := div ($scratch.Get "total") 1 }}
|
|
|
|
{{ $params := dict
|
|
"PostCount" $postCount
|
|
"TotalWords" $totalWords
|
|
}}
|
|
|
|
{{ T "article.totalword" $params | safeHTML }}
|
|
|
|
</section>
|
|
<div>
|
|
<a href="/copyright">{{T "footer.copy"}}</a> | <a href="/donate">{{T "footer.donate"}}</a> | <a href="/feedback">{{T "footer.feedback"}}</a>
|
|
</div>
|
|
|
|
|
|
<div style="display: inline-flex; justify-items: center;">
|
|
<a target="_blank" href="https://beian.miit.gov.cn/" id="beian">豫ICP备2024071946号</a><a> | </a>
|
|
<a target="_blank" id="ga" href="https://beian.mps.gov.cn/#/query/webSearch?code=41040302000150"
|
|
style="display:inline-block;text-decoration:none;">豫公网安备41040302000150号</a>
|
|
</div>
|
|
</footer> |