This repository has been archived on 2023-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
sito-web/layouts/partials/page.html

41 lines
1.1 KiB
HTML
Executable File

<section class="container page">
{{ if .Section }}
<a href="{{.Site.BaseURL}}/{{.Section}}"><i class="fa fa-chevron-left fa-fw"></i> Torna a {{.Section}}</a>
{{ end }}
<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>
<div>
{{ with .Resources.GetMatch (index (.Params.images) 0) }}
{{ $image := . }}
{{ $image := $image.Crop "1280x250" }}
<img src="{{ $image.RelPermalink }}">
{{ end }}
{{ if not .Params.IgnoreTableOfContents }}
{{ .TableOfContents }}
{{ end }}
{{ .Content | safeHTML }}
</div>
</article>
{{ partial "socialshare.html" . }}
{{ if .Params.include_donations }}
{{ partial "donations.html" . }}
{{ end }}
</section>