website/layouts/_default/single.html

25 lines
715 B
HTML
Raw Normal View History

2023-12-30 16:27:13 +00:00
{{ define "main" }}
<main>
<article>
<h1>{{ .Title }}</h1>
2023-12-30 17:13:46 +00:00
{{ if .Params.toc }}
2023-12-30 16:49:57 +00:00
<aside id="toc">
2023-12-30 16:27:13 +00:00
<p>Conteúdo:</p>
2023-12-30 16:49:57 +00:00
{{ .Page.TableOfContents }}
</aside>
2023-12-30 17:13:46 +00:00
{{ end }}
2023-12-30 16:27:13 +00:00
<div>
{{ .Content }}
</div>
2023-12-30 16:49:57 +00:00
<div>
2023-12-31 11:47:43 +00:00
<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>
2023-12-30 16:49:57 +00:00
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
2023-12-30 16:27:13 +00:00
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}