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

24 lines
575 B
HTML

{{ define "title" }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
{{ $cover := (index (.Resources.ByType "image") 0) }}
{{ if $cover }}
<figure class='cover'>
<img src="{{ $cover.Permalink }}" alt="{{ .Params.coverdescription }}" title="{{ .Params.coverdescription }}" />
<figcaption>{{ .Params.covercaption }}</figcaption>
</figure>
{{ end }}
{{ .Content }}
{{ if (eq .Section "artigos") }}
<hr>
{{ partial "byline.html" . }}
{{ end }}
</article>
{{ end }}