Trim more whitespace from template

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-06-19 21:57:25 -07:00
parent db9433bda1
commit a8549922c3

View File

@ -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 -}}