accessible.tips/themes/hugo-xmin/layouts/partials/footer.html
KemoNine 12ac3f6993 major update for jump links: \
\
 - make toc/top phrase dynamic based on if toc is enabled for a page \
 - add a 'jump to content' link at top of page detail/header block \
 - add additional jump links to footer that are shown only if the relevant section of the page \
detail/header block is shown \
 - improve phrasing of jump links appearing inside main page content \
 - update changelog to not have a jump link just below its title \
 - update cms configs to match changed changelog formatting
2023-03-21 09:32:30 -04:00

40 lines
1.1 KiB
HTML

<footer>
{{ partial "foot_custom.html" . }}
<hr/>
{{ if .Page.Params.toc }}
<a class="back_to_top" href="#top">Back to ToC</a>
{{ else }}
<a class="back_to_top" href="#top">Back to top</a>
{{ end }}
{{ with .Page.Params.categories }}
&nbsp;|&nbsp;<a class="back_to_top" href="#categories">Back to categories</a>
{{ end }}
{{ with .Page.Params.tags }}
&nbsp;|&nbsp;<a class="back_to_top" href="#tags">Back to tags</a>
{{ end }}
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ $.Scratch.Set "has_related" true }}
{{ end }}
{{ if $.Scratch.Get "has_related" }}
&nbsp;|&nbsp;<a class="back_to_top" href="#related">Back to related pages</a>
{{ end }}
&nbsp;|&nbsp;<a class="back_to_top" href="#nav_menu">Back to site menu</a>
{{ with .Site.Params.footer }}
<br />{{ replace . "{Year}" now.Year | markdownify}}
{{ end }}
{{ if .GitInfo}}
<br />
Revision <a href="https://github.com/mcrosson/accessible.tips/commit/{{ .GitInfo.Hash }}" rel="noopener">{{ .GitInfo.Hash }}</a>
{{ end }}
</footer>
</body>
</html>