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
This commit is contained in:
parent
10bc92116f
commit
12ac3f6993
|
@ -17,7 +17,6 @@ tags:
|
|||
|
||||
## Changelog
|
||||
{{< changelog >}}
|
||||
{{< back_to_top >}}
|
||||
{{< change 2023-03-17 "test change 1" >}}
|
||||
{{< change 2023-03-18 "test change 2" >}}
|
||||
{{< /changelog >}}
|
||||
|
|
|
@ -15,8 +15,6 @@ tags:
|
|||
---
|
||||
|
||||
## Changelog
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
{{< change 1900-12-30 "Add additional detail, tags" >}}
|
||||
{{< change 1900-12-30 "Initial creation" >}}
|
||||
|
|
|
@ -14,8 +14,6 @@ tags:
|
|||
---
|
||||
|
||||
## Changelog
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
{{< change 2023-03-20 "Initial creation" >}}
|
||||
{{< /changelog >}}
|
||||
|
|
|
@ -14,8 +14,6 @@ tags:
|
|||
---
|
||||
|
||||
## Changelog
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
{{< change 2023-03-20 "Initial creation" >}}
|
||||
{{< /changelog >}}
|
||||
|
|
|
@ -14,8 +14,6 @@ tags:
|
|||
---
|
||||
|
||||
## Changelog
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
{{< change 2023-03-20 "Initial creation" >}}
|
||||
{{< /changelog >}}
|
||||
|
|
|
@ -19,8 +19,6 @@ tags:
|
|||
---
|
||||
|
||||
## Changelog
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
{{< change 2023-03-20 "Initial creation" >}}
|
||||
{{< /changelog >}}
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
<a id="categories_tags" />
|
||||
|
||||
<a id="categories" />
|
||||
<p class="terms">
|
||||
{{ range $i := (slice "categories" "tags") }}
|
||||
{{ range $i := (slice "categories") }}
|
||||
{{ with ($.Param $i) }}
|
||||
{{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
|
||||
{{ end }}
|
||||
<br />
|
||||
{{ end }}
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<a id="tags" />
|
||||
<p class="terms">
|
||||
{{ range $i := (slice "tags") }}
|
||||
{{ with ($.Param $i) }}
|
||||
{{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
|
@ -1,12 +1,35 @@
|
|||
<footer>
|
||||
{{ partial "foot_custom.html" . }}
|
||||
{{ with .Site.Params.footer }}
|
||||
|
||||
<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>
|
||||
| <a class="back_to_top" href="#categories_tags">Back to categories and tags</a>
|
||||
| <a class="back_to_top" href="#nav_menu">Back to menu</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>
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
<div class="article-meta">
|
||||
{{ if .Params.toc }}
|
||||
<a class="back_to_top" href="#top">Jump to ToC</a>
|
||||
{{ else }}
|
||||
<a class="back_to_top" href="#top">Jump to content</a>
|
||||
{{ end }}
|
||||
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
|
||||
{{ with .Params.author }}
|
||||
<h3 class="author">By:
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
{{ 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 }}
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
{{ 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 }}
|
||||
<hr />
|
||||
|
|
|
@ -61,8 +61,6 @@ collections:
|
|||
default: >-
|
||||
## Changelog
|
||||
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
|
||||
{{< change 2000-12-30 "change 1" >}}
|
||||
|
@ -123,8 +121,6 @@ collections:
|
|||
default: >-
|
||||
## Changelog
|
||||
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
|
||||
{{< change 2000-12-30 "change 1" >}}
|
||||
|
|
|
@ -51,8 +51,6 @@ collections:
|
|||
default: >-
|
||||
## Changelog
|
||||
|
||||
{{< back_to_top >}}
|
||||
|
||||
{{< changelog >}}
|
||||
|
||||
{{< change 2000-12-30 "change 1" >}}
|
||||
|
@ -104,9 +102,7 @@ collections:
|
|||
required: true
|
||||
default: >-
|
||||
## Changelog
|
||||
|
||||
{{< back_to_top >}}
|
||||
|
||||
|
||||
{{< changelog >}}
|
||||
|
||||
{{< change 2000-12-30 "change 1" >}}
|
||||
|
|
Loading…
Reference in a new issue