forked from mirrors/hugo-tufte
40 lines
874 B
HTML
40 lines
874 B
HTML
<section>
|
|
|
|
<h1 class="content-title">
|
|
{{ if .IsNode }}
|
|
{{ .Title }}
|
|
{{ else }}
|
|
{{ .Title }}{{ if .Draft }} :: Draft {{end}}
|
|
{{ end }}
|
|
</h1>
|
|
|
|
{{ if .IsPage }}
|
|
{{ if .Params.subtitle }}
|
|
<p class=subtitle>{{ .Params.subtitle }}</p>
|
|
{{ end }}
|
|
|
|
{{ if or (eq .Type "post") (.Params.meta) }}
|
|
<span class="content-meta">
|
|
{{ if .Params.author }}
|
|
<span class="author">{{ .Params.author }}</span><br />
|
|
{{ end }}
|
|
|
|
{{ if not .Params.hidedate }}
|
|
{{ .Date.Format "2006-01-02" }}
|
|
{{end }}
|
|
|
|
{{ if not .Params.hidereadtime }}
|
|
{{ .ReadingTime }} min read
|
|
{{ end }}
|
|
|
|
{{ if .Params.categories }}
|
|
<br>
|
|
{{ range .Params.categories }}
|
|
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
</section>
|