simoncor.net/themes/hugo-coder/layouts/posts/single.html

57 lines
1.9 KiB
HTML
Raw Normal View History

2020-07-16 22:43:30 +02:00
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container post">
<article>
<header>
<div class="post-title">
2024-08-26 17:13:18 +02:00
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ .Title }}
</a>
</h1>
2020-07-16 22:43:30 +02:00
</div>
<div class="post-meta">
<div class="date">
<span class="posted-on">
2024-08-26 17:13:18 +02:00
<i class="fa-solid fa-calendar" aria-hidden="true"></i>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
2020-07-16 22:43:30 +02:00
</time>
</span>
<span class="reading-time">
2024-08-26 17:13:18 +02:00
<i class="fa-solid fa-clock" aria-hidden="true"></i>
2020-07-16 22:43:30 +02:00
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
2024-08-26 17:13:18 +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 }}
2020-07-16 22:43:30 +02:00
</div>
</header>
2024-08-26 17:13:18 +02:00
<div class="post-content">
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
2020-07-16 22:43:30 +02:00
{{ end }}
{{ .Content }}
</div>
<footer>
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utterances.html" . }}
2024-08-26 17:13:18 +02:00
{{ partial "posts/giscus.html" . }}
{{ partial "posts/mastodon.html" . }}
{{ partial "posts/telegram.html" . }}
{{ partial "posts/cusdis.html" . }}
2020-07-16 22:43:30 +02:00
</footer>
</article>
{{ partial "posts/math.html" . }}
</section>
{{ end }}