12ac3f6993
\ - 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
40 lines
1.1 KiB
HTML
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 }}
|
|
| <a class="back_to_top" href="#categories">Back to categories</a>
|
|
{{ end }}
|
|
|
|
{{ with .Page.Params.tags }}
|
|
| <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" }}
|
|
| <a class="back_to_top" href="#related">Back to related pages</a>
|
|
{{ end }}
|
|
|
|
| <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>
|