website/layouts/_default/single.html

25 lines
715 B
HTML

{{ define "main" }}
<main>
<article>
<h1>{{ .Title }}</h1>
{{ if .Params.toc }}
<aside id="toc">
<p>Conteúdo:</p>
{{ .Page.TableOfContents }}
</aside>
{{ end }}
<div>
{{ .Content }}
</div>
<div>
<i>Criado em <time>{{ .Date.Format .Site.Params.dateFmt }}</time>, <a href="https://git.partilha.se/44203/website/commits/branch/main/content/{{ .File.Path }}">editado em<time>{{ .Lastmod.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></a>.</i>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}