mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-16 23:12:45 +02:00
Initial commit.
This commit is contained in:
commit
b3a2e36507
50 changed files with 2152 additions and 0 deletions
layouts/partials
35
layouts/partials/content.header.html
Normal file
35
layouts/partials/content.header.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<h1 class="content-title-mini">{{ .Type }}</h1>
|
||||
<h1 class="content-title">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
{{ if .Draft }} :: Draft {{end}}
|
||||
</a>
|
||||
</h1>
|
||||
{{ if .Params.subtitle }}<p class=subtitle>{{ .Params.subtitle }}</p>{{ end }}
|
||||
{{ if or (eq .Type "post") (.Params.meta) }}
|
||||
<span class="content-meta">
|
||||
{{ if .Params.author }}
|
||||
<i class="fa fa-user"> </i><span class="author">
|
||||
{{ .Params.author }}</span> <br>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if not .Params.hidedate }}
|
||||
<i class="fa fa-calendar"></i>
|
||||
{{ .Date.Format "Jan 2, 2006" }}
|
||||
{{end }}
|
||||
|
||||
{{ if not .Params.hidereadtime }}
|
||||
<i class="fa fa-clock-o"></i>
|
||||
{{ .ReadingTime }} min read
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.categories }}
|
||||
<br>
|
||||
<i class="fa fa-tags"> </i>
|
||||
{{ range .Params.categories }}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue