mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 22:12:44 +02:00
adjust meta styles; add tufte-css.md
This commit is contained in:
parent
20e13a5e63
commit
2587e4bb28
6 changed files with 235 additions and 10 deletions
layouts/partials
|
@ -10,17 +10,17 @@
|
|||
|
||||
{{ if .IsPage }}
|
||||
{{ if .Params.subtitle }}
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
<h3 class=subtitle>{{ .Params.subtitle }}</h3>
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq .Type "post") (.Params.meta) }}
|
||||
<span class="content-meta">
|
||||
{{ if .Params.author }}
|
||||
<span class="author">{{ .Params.author }}</span><br />
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if not .Params.hidedate }}
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||
{{end }}
|
||||
|
||||
{{ if not .Params.hidereadtime }}
|
||||
|
@ -28,7 +28,6 @@
|
|||
{{ end }}
|
||||
|
||||
{{ if .Params.categories }}
|
||||
<br>
|
||||
{{ range .Params.categories }}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue