You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugo-theme-mini/layouts/_default/single.html

46 lines
896 B
HTML

{{ define "main" }}
<section id="single">
<h1 class="title">{{ .Title }}</h1>
<div class="tip">
<span>
{{ .Date.Format "Jan 2, 2006 15:04" }}
</span>
<span class="split">
·
</span>
<span>
{{ if lt 1 .WordCount }}
{{ .WordCount }} words
{{ else }}
{{ .WordCount }} word
{{ end }}
</span>
<span class="split">
·
</span>
<span>
{{ .ReadingTime }} minute read
</span>
</div>
<div class="content">
{{ .Content }}
</div>
{{ with .Params.tags }}
<div class="tags">
{{ range . }}
<a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end}}
{{ partial "comment.html" . }}
</section>
{{ end }}