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