loviuz-website/layouts/partials/page.html

37 lines
895 B
HTML
Raw Normal View History

2022-06-05 12:10:31 +02:00
<section class="container page">
2022-06-05 15:32:24 +02:00
{{ if .Section }}
2022-06-05 16:45:20 +02:00
<a href="{{.Site.BaseURL}}/{{.Section}}"><i class="fa fa-chevron-left fa-fw"></i> Torna a {{.Section}}</a>
2022-06-05 15:32:24 +02:00
{{ end }}
2022-06-05 12:10:31 +02:00
<article>
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ .Title }}
</a>
</h1>
{{ if .Params.tags }}
<ul class="tags">
{{ range .Params.tags }}
<li>#{{ . }}</li>
{{ end }}
</ul>
{{ end }}
</header>
2022-07-03 17:24:33 +02:00
{{ if .Params.images }}
{{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
2022-06-05 12:10:31 +02:00
{{ $image := $image.Crop "1280x250" }}
<img src="{{ $image.RelPermalink }}">
{{ end }}
{{ .Content }}
</article>
2022-07-17 14:59:37 +02:00
{{ partial "socialshare.html" . }}
2022-07-17 14:59:37 +02:00
{{ if .Params.include_donations }}
{{ partial "donations.html" . }}
{{ end }}
2022-06-05 12:10:31 +02:00
</section>