2024-10-20 16:05:45 +08:00
|
|
|
{{- $ThemeVersion := "3.29.0" -}}
|
2025-01-05 16:40:30 +08:00
|
|
|
{{- $BuildID := .Site.Data.Build.ID -}}
|
|
|
|
{{- $BuildURL := .Site.Data.Build.URL -}}
|
|
|
|
{{- $BuildChannel := .Site.Data.Build.Channel -}}
|
2020-08-22 19:20:08 +08:00
|
|
|
<footer class="site-footer">
|
2020-12-20 19:34:44 +08:00
|
|
|
<section class="copyright">
|
|
|
|
©
|
|
|
|
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
|
|
|
{{ .Site.Params.footer.since }} -
|
|
|
|
{{ end }}
|
2023-08-12 17:29:56 +08:00
|
|
|
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
|
2020-12-20 19:34:44 +08:00
|
|
|
</section>
|
|
|
|
|
2020-08-22 19:20:08 +08:00
|
|
|
<section class="powerby">
|
2020-12-20 19:34:44 +08:00
|
|
|
{{ with .Site.Params.footer.customText }}
|
|
|
|
{{ . | safeHTML }} <br/>
|
|
|
|
{{ end }}
|
|
|
|
|
2025-01-05 16:40:30 +08:00
|
|
|
{{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
|
|
|
|
{{- $Theme := `<a href="https://git.sunyz.net/realSunyz/hugo-theme-stack" target="_blank" rel="noopener">Stack</a>` -}}
|
2020-11-28 19:29:43 +08:00
|
|
|
{{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
|
2025-01-05 16:40:30 +08:00
|
|
|
{{- $ForkedBy := `<a href="https://sunyz.dev" target="_blank" rel="noopener">Seven</a>` -}}
|
|
|
|
{{- $Commit := printf `<a href="%s" target="_blank" rel="noopener">%s</a>` $BuildURL $BuildID -}}
|
|
|
|
{{- $Channel := printf `%s` $BuildChannel -}}
|
2020-11-28 19:29:43 +08:00
|
|
|
|
2025-01-05 16:40:30 +08:00
|
|
|
{{ T "footer.poweredBy" (dict "Commit" $Commit "Channel" $Channel) | safeHTML }} <br />
|
|
|
|
{{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }} <br />
|
|
|
|
{{ T "footer.forkedBy" (dict "ForkedBy" $ForkedBy) | safeHTML }}
|
2020-08-22 19:20:08 +08:00
|
|
|
</section>
|
2021-08-15 18:05:12 +08:00
|
|
|
</footer>
|