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/novita/single.html

70 lines
2.4 KiB
HTML
Raw Normal View History

2022-12-19 22:37:47 +01:00
{{ define "title" }}
2023-05-21 16:16:12 +02:00
{{ .Title }} · {{ .Site.Title }}
2022-12-19 22:37:47 +01:00
{{ end }}
{{ define "content" }}
2023-05-21 16:16:12 +02:00
<section class="container post">
2022-12-19 22:37:47 +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-19 22:37:47 +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>
2023-07-11 23:10:39 +02:00
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
2023-05-21 16:16:12 +02:00
</div>
</header>
2022-12-19 22:37:47 +01:00
2023-05-21 16:16:12 +02:00
<div>
{{ with .Resources.GetMatch (index (.Params.images) 0) }}
{{ $image := . }}
{{ $image_cropped := .Crop "1280x250" }}
2022-12-19 22:37:47 +01:00
2023-05-21 16:16:12 +02:00
{{ if $.Page.Params.fullcover }}
<img src="{{ $image.RelPermalink }}">
{{ else }}
<img src="{{ $image_cropped.RelPermalink }}">
{{ end }}
{{ end }}
2022-12-19 22:37:47 +01:00
2023-05-21 16:16:12 +02:00
{{ if not .Params.IgnoreTableOfContents }}
{{ .TableOfContents }}
{{ end }}
{{ .Content | safeHTML }}
</div>
2022-12-19 22:37:47 +01:00
2023-05-21 16:16:12 +02:00
{{ partial "socialshare.html" . }}
2022-12-19 22:37:47 +01:00
2023-05-21 16:16:12 +02:00
{{ partial "donations.html" . }}
<footer>
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utterances.html" . }}
</footer>
2022-12-19 22:37:47 +01:00
</article>
{{ partial "posts/math.html" . }}
2023-05-21 16:16:12 +02:00
</section>
{{ end }}