theme-blog-ewen/layouts/_default/single.html
2022-03-31 06:22:55 +02:00

31 lines
818 B
HTML

{{ define "main" }}
<!-- blog post-->
<section class="section-sm">
<div class="container">
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<span class="article-date">{{ i18n "published" }} <a href="{{ .CurrentSection.URL }}">{{ .CurrentSection.Name }}</a> {{ i18n "on" }} {{ .Date.Format "2006-01-02" }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</span>
<div class="post-content">
{{ .Content }}
{{ if .Site.Params.Info.related }}
<div class="related">{{ partial "related" . }}</div>
</div>
</article>
{{ if .Site.Params.issoComments }}
{{- partial "isso" . -}}
{{ end }}
{{ end }}
</div>
</section>
{{ end }}