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

24 lines
575 B
HTML
Raw Normal View History

2023-07-18 22:26:43 +00:00
{{ define "title" }}
{{ .Title }} | {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
2023-07-18 22:26:43 +00:00
{{ $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 }}
2023-07-18 22:26:43 +00:00
{{ .Content }}
2023-07-18 22:26:43 +00:00
{{ if (eq .Section "artigos") }}
<hr>
{{ partial "byline.html" . }}
2023-07-18 22:26:43 +00:00
{{ end }}
</article>
2023-07-18 22:26:43 +00:00
{{ end }}