mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-15 12:56:57 +01:00
33 lines
821 B
HTML
33 lines
821 B
HTML
<section>
|
|
<h1 class="content-title">
|
|
{{- .Title -}}{{- if .Draft -}} :: Draft{{- end -}}
|
|
</h1>
|
|
{{- if .Params.subtitle -}}
|
|
<p class=subtitle>{{ .Params.subtitle }}</p>
|
|
{{- end -}}
|
|
|
|
{{- if and (.IsPage) (.Params.meta) -}}
|
|
<span class="content-meta">
|
|
{{- if .Params.author -}}
|
|
<p class="author">{{ .Params.author }}</p>
|
|
{{- end -}}
|
|
|
|
{{- if not .Params.hidedate -}}
|
|
<p class="date">
|
|
{{ if .Site.Params.dateFormatLong }}
|
|
{{ .Date.Format .Site.Params.dateFormatLong }}
|
|
{{ else }}
|
|
{{ .Date.Format "2006-01-02" }}
|
|
{{ end }}</p>
|
|
{{- end -}}
|
|
|
|
{{- if not .Params.hidereadtime -}}
|
|
<span>{{ .ReadingTime }} min read </span>
|
|
{{- end -}}
|
|
|
|
{{- range .Params.tags -}}
|
|
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
|
{{- end -}}
|
|
</span>
|
|
{{- end -}}
|
|
</section>
|