accessible.tips/themes/hugo-xmin/layouts/partials/page_meta.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

41 lines
1.2 KiB
HTML

<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:
{{ if (reflect.IsSlice .) }}
{{ delimit . ", " }}
{{ else }}
{{ . }}
{{ end }}
</h3>
{{ end }}
{{ if (gt .Date 0) }}<h4 class="date">Published: {{ .Date.Format "2006/01/02" }}</h4>{{ end }}
{{ if (gt .Lastmod 0) }}<h4 class="date">Last Modified: {{ .Lastmod.Format "2006/01/02" }}</h4>{{ end }}
<p>
{{ if (gt .ReadingTime 0) }}<small>Reading Time: {{ .ReadingTime }} minutes</small>{{ end }}
&nbsp;|&nbsp;
{{ if (gt .WordCount 0) }}<small>Word Count: {{ .WordCount }} words</small>{{ end }}
</p>
<p class="terms">
{{ partial "categories_tags.html" . }}
</p>
<p class="terms">
{{ partial "related.html" . }}
</p>
</div>
<a id="top" />
{{ if .Params.toc }}
{{ .TableOfContents }}
{{ else }}
{{ end }}