site_footer.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <footer class="site-footer">
  2. {{ if or (site.GetPage "terms.md") (site.GetPage "privacy.md") }}
  3. <p class="powered-by">
  4. {{ with site.GetPage "privacy.md" }}
  5. {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
  6. {{ end }}
  7. {{ with site.GetPage "terms.md" }}
  8. {{ if site.GetPage "privacy.md" }} &middot; {{ end }}
  9. {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
  10. {{ end }}
  11. </p>
  12. {{ end }}
  13. <p class="powered-by">
  14. {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }}
  15. </p>
  16. {{/* Display copyright license. */}}
  17. {{ partial "site_footer_license" . }}
  18. <p class="powered-by">
  19. {{ $is_sponsor := site.Params.i_am_a_sponsor | default false }}
  20. {{ $hide_published_with_footer := site.Params.power_ups.hide_published_with | default true }}
  21. {{ if not (and $is_sponsor $hide_published_with_footer) }}
  22. Published with
  23. <a href="https://wowchemy.com" target="_blank" rel="noopener">Wowchemy</a> —
  24. the free, <a href="https://github.com/wowchemy/wowchemy-hugo-modules" target="_blank" rel="noopener">
  25. open source</a> website builder that empowers creators.
  26. {{ end }}
  27. {{ if not (in (slice "book" "docs" "updates") .Type) }}
  28. <span class="float-right">
  29. <a href="#" class="back-to-top" aria-label="Back to top">
  30. <span class="button_icon">
  31. <i class="fas fa-chevron-up fa-2x"></i>
  32. </span>
  33. </a>
  34. </span>
  35. {{ end }}
  36. </p>
  37. </footer>