Trim more whitespace from template
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
db9433bda1
commit
a8549922c3
|
@ -2,31 +2,31 @@
|
|||
<h2>{{ .Title }}</h2>
|
||||
<div class="post-subscript">
|
||||
<p>
|
||||
{{ range .Params.tags }}
|
||||
{{- range .Params.tags -}}
|
||||
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
</p>
|
||||
<p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
|
||||
{{- if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
|
||||
<div class="table-of-contents">
|
||||
<div class="wrapper">
|
||||
<em>{{ i18n "tableOfContents" }}</em>
|
||||
{{ .TableOfContents }}
|
||||
<em>{{- i18n "tableOfContents" -}}</em>
|
||||
{{- .TableOfContents -}}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{ if .Draft }}
|
||||
{{ partial "warning.html" (i18n "postDraft") }}
|
||||
{{ end }}
|
||||
{{- if .Draft -}}
|
||||
{{- partial "warning.html" (i18n "postDraft") -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ .Content }}
|
||||
{{- .Content -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "after" }}
|
||||
{{- end -}}
|
||||
{{- define "after" -}}
|
||||
{{- partial "seriesnav.html" . -}}
|
||||
<hr class="container footer-divider">
|
||||
<footer class="container">
|
||||
|
@ -39,4 +39,4 @@
|
|||
to learn more about me!</p>
|
||||
-->
|
||||
</footer>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user