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

49 lines
1.7 KiB
HTML

{{ partial "head.html" . }}
<body>
{{ partial "nav.html" . }}
<section id="wrapper">
<article class="post">
<header>
<h1>
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }}
{{ else }}
{{ .Title }}
{{ end }}
</h1>
<h2 class="headline">
{{ .Date.Format "Jan 2, 2006 15:04" }}
· {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }}
· {{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
<span class="tags">
{{ with .Params.tags }}
{{ if ge (len .) 1 }}
{{ range . }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ end}}
</span>
</h2>
</header>
<section id="post-body">
{{ .Content }}
</section>
</article>
{{ if .Site.Params.enableGithubIssuesTips }}
{{ partial "github-issues-tip.html" . }}
{{ end }}
{{ if .Site.Params.enableDisqus }}
{{ partial "disqus.html" . }}
{{ end }}
{{ partial "footer.html" . }}
</section>
{{ partial "js.html" . }}
</body>
</html>