website/layouts/_default/single.html

25 lines
651 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>
<i>Criado em <time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>. Editado em <time>{{ .Lastmod.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>.</i>
{{ 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 }}