2022-12-24 19:15:22 +01:00
|
|
|
{{ define "title" }}
|
2023-05-21 16:16:12 +02:00
|
|
|
{{ .Title }} · {{ .Site.Title }}
|
2022-12-24 19:15:22 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
2023-05-21 16:16:12 +02:00
|
|
|
<section class="container post">
|
2022-12-24 19:15:22 +01:00
|
|
|
{{ if .Section }}
|
2023-05-21 16:16:12 +02:00
|
|
|
<a href="{{.Site.BaseURL}}/{{.Section}}"><i class="fa fa-chevron-left fa-fw"></i> Torna alle {{.Section}}</a>
|
2022-12-24 19:15:22 +01:00
|
|
|
{{ end }}
|
|
|
|
<article>
|
2023-05-21 16:16:12 +02:00
|
|
|
<header>
|
|
|
|
<div class="post-title">
|
|
|
|
<h1 class="title">
|
|
|
|
<a class="title-link" href="{{ .Permalink | safeURL }}">
|
|
|
|
{{ .Title }}
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<div class="post-meta">
|
|
|
|
<div class="date">
|
|
|
|
<span class="posted-on">
|
|
|
|
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
|
|
|
{{ .Date | time.Format (.Site.Params.dateFormat | default "2 January 2006" ) }}
|
|
|
|
</time>
|
|
|
|
</span>
|
|
|
|
<span class="reading-time">
|
|
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
|
|
|
{{ i18n "reading_time" .ReadingTime }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }}
|
|
|
|
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
|
|
|
|
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-12-24 19:15:22 +01:00
|
|
|
|
2023-05-21 16:16:12 +02:00
|
|
|
<div>
|
|
|
|
{{ with .Resources.GetMatch (index (.Params.images) 0) }}
|
|
|
|
{{ $image := . }}
|
|
|
|
{{ $image := $image.Crop "1280x250" }}
|
|
|
|
<img src="{{ $image.RelPermalink }}">
|
|
|
|
{{ end }}
|
2022-12-24 19:15:22 +01:00
|
|
|
|
2023-05-21 16:16:12 +02:00
|
|
|
{{ if not .Params.IgnoreTableOfContents }}
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
{{ end }}
|
|
|
|
{{ .Content | safeHTML }}
|
|
|
|
</div>
|
2022-12-24 19:15:22 +01:00
|
|
|
|
2023-05-21 16:16:12 +02:00
|
|
|
{{ partial "socialshare.html" . }}
|
2022-12-24 19:15:22 +01:00
|
|
|
|
|
|
|
|
2023-05-21 16:16:12 +02:00
|
|
|
{{ partial "donations.html" . }}
|
2022-12-24 19:15:22 +01:00
|
|
|
|
2023-05-21 16:16:12 +02:00
|
|
|
<footer>
|
|
|
|
{{ partial "posts/series.html" . }}
|
|
|
|
{{ partial "posts/disqus.html" . }}
|
|
|
|
{{ partial "posts/commento.html" . }}
|
|
|
|
{{ partial "posts/utterances.html" . }}
|
|
|
|
</footer>
|
2022-12-24 19:15:22 +01:00
|
|
|
</article>
|
|
|
|
|
|
|
|
{{ partial "posts/math.html" . }}
|
2023-05-21 16:16:12 +02:00
|
|
|
</section>
|
|
|
|
{{ end }}
|