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> <h2>{{ .Title }}</h2>
<div class="post-subscript"> <div class="post-subscript">
<p> <p>
{{ range .Params.tags }} {{- range .Params.tags -}}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a> <a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }} {{- end -}}
</p> </p>
<p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p> <p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p>
</div> </div>
<div class="post-content"> <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="table-of-contents">
<div class="wrapper"> <div class="wrapper">
<em>{{ i18n "tableOfContents" }}</em> <em>{{- i18n "tableOfContents" -}}</em>
{{ .TableOfContents }} {{- .TableOfContents -}}
</div> </div>
</div> </div>
{{ end }} {{- end -}}
{{ if .Draft }} {{- if .Draft -}}
{{ partial "warning.html" (i18n "postDraft") }} {{- partial "warning.html" (i18n "postDraft") -}}
{{ end }} {{- end -}}
{{ .Content }} {{- .Content -}}
</div> </div>
{{ end }} {{- end -}}
{{ define "after" }} {{- define "after" -}}
{{- partial "seriesnav.html" . -}} {{- partial "seriesnav.html" . -}}
<hr class="container footer-divider"> <hr class="container footer-divider">
<footer class="container"> <footer class="container">
@ -39,4 +39,4 @@
to learn more about me!</p> to learn more about me!</p>
--> -->
</footer> </footer>
{{ end }} {{- end -}}