mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-14 14:32:43 +02:00
add paginator for home page; update social footers; change meta check logic
This commit is contained in:
parent
2423e3fc37
commit
2ce906cb31
3 changed files with 63 additions and 39 deletions
layouts/partials
|
@ -1,10 +1,6 @@
|
|||
<section>
|
||||
<h1 class="content-title">
|
||||
{{- if .IsNode -}}
|
||||
{{- .Title -}}
|
||||
{{- else -}}
|
||||
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
|
||||
{{- end -}}
|
||||
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
|
||||
</h1>
|
||||
|
||||
{{- if .IsPage -}}
|
||||
|
@ -12,7 +8,7 @@
|
|||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{- if or (eq .Type "post") (.Params.meta) -}}
|
||||
{{- if .Params.meta -}}
|
||||
<span class="content-meta">
|
||||
{{- if .Params.author -}}
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue