drm-pt.info/layouts/_default/single.html

31 lines
881 B
HTML
Raw Normal View History

2023-07-18 22:26:43 +00:00
{{ define "title" }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>
<img src="./capa.jpg" alt="{{ .Params.coverdescription }}" title="{{ .Params.coverdescription }}" />
<img src="./capa.png" alt="{{ .Params.coverdescription }}" title="{{ .Params.coverdescription }}" />
<img src="./capa.gif" alt="{{ .Params.coverdescription }}" title="{{ .Params.coverdescription }}" />
{{ .Content }}
{{ if (eq .Section "artigos") }}
<hr>
<p>
Publicado por {{ .Params.author }}
//
{{ if .Params.categories }}
{{ range $index, $name := .Params.categories }}
{{ $name }}{{ if ne (add $index 1) (len $.Params.categories) }}, {{ end }}
{{ end }}
{{ else }}
Sem categoria
{{ end }}
//
<a href="{{ .Permalink }}">{{ time.Format "02 de January, 2006" .Date }}</a>
</p>
{{ end }}
{{ end }}