footer.html 1.0 KB

1234567891011121314151617181920212223
  1. {{- $ThemeVersion := "3.11.0" -}}
  2. <footer class="site-footer">
  3. <section class="copyright">
  4. &copy;
  5. {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
  6. {{ .Site.Params.footer.since }} -
  7. {{ end }}
  8. {{ now.Format "2006" }} {{ .Site.Title }}
  9. </section>
  10. <section class="powerby">
  11. {{ with .Site.Params.footer.customText }}
  12. {{ . | safeHTML }} <br/>
  13. {{ end }}
  14. {{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
  15. {{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
  16. {{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
  17. {{ T "footer.builtWith" (dict "Generator" $Generator) | safeHTML }} <br />
  18. {{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
  19. </section>
  20. </footer>