hugo-theme-flat/layouts/_default/single.html

49 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2022-04-27 13:54:00 +00:00
{{ define "main" }}
<section class="single">
<h1 class="title">{{ .Title }}</h1>
<div class="tip">
<time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006/01/02" }}</time>
<span class="split">·</span>
<span> {{ .WordCount }} words </span>
<span class="split">·</span>
<span>
{{ .ReadingTime }} minutes to read
</span>
</div>
<div class="taxonomies">
{{ with .Params.categories }}
<div>
Categories:
{{ range . }}
2022-09-04 11:11:04 +00:00
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
2022-04-27 13:54:00 +00:00
{{ end }}
</div>
{{ end }}
{{ with .Params.tags }}
<div>
Tags:
{{ range . }}
2022-09-04 11:11:04 +00:00
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
2022-04-27 13:54:00 +00:00
{{ end }}
</div>
{{ end }}
</div>
<hr />
<div class="content">
{{ .Content }}
</div>
{{ with and .Site.Params.remark42 .Params.show_comments }}
2022-04-27 13:54:00 +00:00
<hr />
{{ partial "comment.html" . }}
{{ end }}
</section>
{{ end }}