mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-24 14:29:44 +01:00
Use content.header partial for pages and nodes.
This commit is contained in:
parent
b9f669e1b4
commit
8dafca7e01
1 changed files with 9 additions and 4 deletions
|
@ -1,9 +1,12 @@
|
||||||
|
<section>
|
||||||
<h1 class="content-title">
|
<h1 class="content-title">
|
||||||
<a href="{{ .RelPermalink }}">
|
{{ if .IsNode }}
|
||||||
{{ .Title }}
|
<a href="{{ .Permalink }}">{{ .Title}}<a>
|
||||||
{{ if .Draft }} :: Draft {{end}}
|
{{ else }}
|
||||||
</a>
|
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
|
||||||
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
{{ if .IsPage }}
|
||||||
{{ if .Params.subtitle }}<p class=subtitle>{{ .Params.subtitle }}</p>{{ end }}
|
{{ if .Params.subtitle }}<p class=subtitle>{{ .Params.subtitle }}</p>{{ end }}
|
||||||
{{ if or (eq .Type "post") (.Params.meta) }}
|
{{ if or (eq .Type "post") (.Params.meta) }}
|
||||||
<span class="content-meta">
|
<span class="content-meta">
|
||||||
|
@ -32,3 +35,5 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue