mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-06 03:12:43 +02:00
update some layouts
This commit is contained in:
parent
37e9cb786c
commit
9ef1d4b721
5 changed files with 38 additions and 30 deletions
layouts/partials
|
@ -2,30 +2,27 @@
|
|||
<h1 class="content-title">
|
||||
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
|
||||
</h1>
|
||||
{{- if .Params.subtitle -}}
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if .IsPage -}}
|
||||
{{- if .Params.subtitle -}}
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
{{- if and (.IsPage) (.Params.meta) -}}
|
||||
<span class="content-meta">
|
||||
{{- if .Params.author -}}
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Params.meta -}}
|
||||
<span class="content-meta">
|
||||
{{- if .Params.author -}}
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if not .Params.hidedate -}}
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if not .Params.hidereadtime -}}
|
||||
<span>{{ .ReadingTime }} min read </span>
|
||||
{{- end -}}
|
||||
|
||||
{{- range .Params.tags -}}
|
||||
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- if not .Params.hidedate -}}
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue