hugo-tufte/layouts/partials/content.header.html

36 lines
833 B
HTML
Raw Normal View History

<section>
2023-04-15 01:36:29 +02:00
<h1 class="content-title">
{{- if .IsNode -}}
{{- .Title -}}
{{- else -}}
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
{{- end -}}
2023-04-15 01:36:29 +02:00
</h1>
{{- if .IsPage -}}
{{- if .Params.subtitle -}}
2023-04-23 21:19:13 +02:00
<p class=subtitle>{{ .Params.subtitle }}</p>
{{- end -}}
2023-04-15 01:36:29 +02:00
{{- if or (eq .Type "post") (.Params.meta) -}}
2023-04-23 21:19:13 +02:00
<span class="content-meta">
{{- if .Params.author -}}
<p class="author">{{ .Params.author }}</p>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-23 21:19:13 +02:00
{{- if not .Params.hidedate -}}
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-23 21:19:13 +02:00
{{- if not .Params.hidereadtime -}}
<span>{{ .ReadingTime }} min read&nbsp;</span>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-24 03:18:29 +02:00
{{- range .Params.tags -}}
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>&nbsp;
2023-04-23 21:19:13 +02:00
{{- end -}}
</span>
{{- end -}}
{{- end -}}
2023-04-23 21:19:13 +02:00
</section>