mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-03 18:22:44 +02:00
update example site
This commit is contained in:
parent
95a0068d52
commit
3043b67b53
4 changed files with 27 additions and 34 deletions
layouts/partials
|
@ -1,5 +1,4 @@
|
|||
<section>
|
||||
|
||||
<h1 class="content-title">
|
||||
{{- if .IsNode -}}
|
||||
{{- .Title -}}
|
||||
|
@ -10,28 +9,27 @@
|
|||
|
||||
{{- if .IsPage -}}
|
||||
{{- if .Params.subtitle -}}
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if or (eq .Type "post") (.Params.meta) -}}
|
||||
<span class="content-meta">
|
||||
{{- if .Params.author -}}
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
{{- end -}}
|
||||
<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.hidedate -}}
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if not .Params.hidereadtime -}}
|
||||
<span>{{ .ReadingTime }} min read </span>
|
||||
{{- end -}}
|
||||
{{- if not .Params.hidereadtime -}}
|
||||
<span>{{ .ReadingTime }} min read </span>
|
||||
{{- end -}}
|
||||
|
||||
{{- range .Params.categories -}}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- range .Params.categories -}}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue