website/layouts/_default/single.html

25 lines
619 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>, 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>
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}