hugo-coder-fork/layouts/posts/single.html

43 lines
1.2 KiB
HTML
Raw Normal View History

2018-03-01 01:38:59 +00:00
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container post">
<article>
<header>
<div class="post-title">
<h1 class="title">{{ .Title }}</h1>
</div>
<div class="post-meta">
<div class="date">
<span class="posted-on">
<i class="fas fa-calendar"></i>
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
</time>
</span>
<span class="reading-time">
<i class="fas fa-clock"></i>
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
2019-06-14 16:27:38 +00:00
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div>
</header>
<div>
{{ .Content }}
</div>
<footer>
2019-06-14 16:27:38 +00:00
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
</footer>
</article>
2019-06-14 16:27:38 +00:00
{{ partial "posts/math.html" . }}
</section>
2018-03-01 01:38:59 +00:00
{{ end }}