hugo-theme-paradox/layouts/_default/single.html
2022-10-16 17:15:34 -05:00

34 lines
1.4 KiB
HTML

{{ define "main" }}
<main>
<article class="page" {{- if .Param "autonumbering" }} autonumbering {{- end }}>
<header class="section page-header">
<div class="container">
{{ partial "breadcrumbs.html" . }}
<h1 class="page-title">{{ .Title }}</h1>
<p class="page-summary">{{.Page.Summary | plainify}}</p>
<p class="lastmod">Last modified <datetime class="date">{{ .Lastmod.Format "Mon Jan 2, 2006" }}</datetime><span class="edit-link"><br><a href='{{if eq .Site.Params.forge "github"}}{{printf "https://github.com/%s/edit/%s/%s/%s" .Site.Params.repo .Site.Params.branch .Site.Language.ContentDir .File.Path}}{{else if eq .Site.Params.forge "gitea"}}{{printf "%s/%s/_edit/%s/%s/%s" .Site.Params.forgeUrl .Site.Params.repo .Site.Params.branch (cond (isset .Site.Language "ContentDir") .Site.Language.ContentDir "content") .File.Path}}{{else}}#{{end}}'>Edit this page</a></span></p>
{{ partial "i18nlist.html" . }}
</div>
</header>
<aside class="toc section">
<div class="container">
<p class="toc-title">Page outline</p>
{{ .TableOfContents }}
</div>
</aside>
<section class="content section">
<div class="container">
{{ .Content }}
</div>
</section>
{{ partial "nav-section.html" . }}
<footer class="section page-footer">
<div class="container">
{{ partial "page-footer.html" . }}
</div>
</footer>
</article>
</main>
{{ end }}