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

33 lines
818 B
HTML
Raw Normal View History

<section>
2023-04-15 01:36:29 +02:00
<h1 class="content-title">
{{- .Title -}}{{- if .Draft -}}&nbsp;:: Draft{{- end -}}
2023-04-15 01:36:29 +02:00
</h1>
2023-04-25 16:19:09 +02:00
{{- if .Params.subtitle -}}
<p class=subtitle>{{ .Params.subtitle }}</p>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-25 16:19:09 +02:00
{{- if and (.IsPage) (.Params.meta) -}}
<span class="content-meta">
{{- if .Params.author -}}
<p class="author">{{ .Params.author }}</p>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-25 16:19:09 +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-25 16:19:09 +02:00
{{- if not .Params.hidereadtime -}}
<span>{{ .ReadingTime }} min read&nbsp;</span>
{{- end -}}
2023-04-15 01:36:29 +02:00
2023-04-25 16:19:09 +02:00
{{- range .Params.tags -}}
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>&nbsp;
{{- end -}}
{{- range .Params.categories -}}
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">@{{ . }}</a>&nbsp;
{{- end -}}
2023-04-25 16:19:09 +02:00
</span>
{{- end -}}
2023-04-23 21:19:13 +02:00
</section>