Fix the alignment of the post title <h1>
This commit is contained in:
parent
fe176e4dfd
commit
090eef5bee
5 changed files with 37 additions and 32 deletions
|
@ -1,16 +1,23 @@
|
|||
<header>
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ if and (not (eq .Section "about")) .Date }}
|
||||
<time>{{ .Date | 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>
|
||||
<span class="series">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</header>
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{ if .Draft }}<span class="draft">d</span>{{ end }}
|
||||
{{ if .Draft }}<span class="draft">draft</span>{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue