Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
26
themes/platters/layouts/partials/content_header.html
Normal file
26
themes/platters/layouts/partials/content_header.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<header class="content-title">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ with .Description -}}
|
||||
<p class="subtitle">{{ . }}</p>
|
||||
{{- end }}
|
||||
|
||||
{{ with .Date -}}
|
||||
<time>{{ . | time.Format "January 2, 2006" }}</time>
|
||||
{{- end }}
|
||||
|
||||
{{- if .Params.series -}}
|
||||
{{- $series := .GetTerms "series" -}}
|
||||
|
||||
{{- if gt (len $series) 1 -}}
|
||||
{{- errorf "More than one series for %s" .Permalink -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- with index $series 0 -}}
|
||||
<span class="series">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</header>
|
||||
Loading…
Add table
Add a link
Reference in a new issue