commit 07c8d9debf00cd571af80d7a2cf6761ef2bcabe3
parent c9145df04fef621e5dd21f5edd3d445b73f6b7e4
Author: Luke Smith <luke@lukesmith.xyz>
Date: Mon, 11 Jul 2022 14:11:52 -0400
remove tag.html and whitespace fixes
Diffstat:
5 files changed, 14 insertions(+), 26 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,14 +1,11 @@
-{{ partial "header.html" . }}
-<header><h1>{{ .Title }}</h1></header>
+{{ partial "header.html" . -}}
+<header><h1 id="tag_{{ .Title }}">{{ .Title | title }}</h1></header>
<article>
-{{ .Content }}
+{{ .Content -}}
<ul>
-{{ range.Pages }}
-<li>
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> –
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
-</li>
-{{ end }}
+{{- range.Pages }}
+ <li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+{{ end -}}
</ul>
</article>
-{{ partial "footer.html" . }}
+{{- partial "footer.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,6 +1,6 @@
-{{ partial "header.html" . }}
-<header><h1>{{ with .Params.icon }}<img src="/pix/{{ . }}" class=titleicon>{{ end }}{{ .Title }}</h1></header>
-<article>{{ with .Params.img }}<img src="/pix/{{ . }}" class=titleimg>{{ end }}
-{{ .Content }}
+{{ partial "header.html" . -}}
+<header><h1>{{ .Title }}</h1></header>
+<article>
+{{ .Content -}}
</article>
{{ partial "footer.html" . }}
diff --git a/layouts/_default/tag.html b/layouts/_default/tag.html
@@ -1,9 +0,0 @@
-{{ partial "header.html" . }}
-<header><h1 id="tag_{{ .Title }}">{{ .Title | title }}</h1></header>
-<article>
-{{ .Content }}
-<ul class=tagartlist>
-{{ range.Pages }}<li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
-{{ end }}</ul>
-</article>
-{{ partial "footer.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -1,4 +1,4 @@
-{{ partial "taglist.html" . }}
+{{ partial "taglist.html" . -}}
</main>
<footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -15,7 +15,7 @@
<meta charset="utf-8">
</head>
<body>
-{{ if .Site.Menus.main -}}
+{{- if .Site.Menus.main }}
{{ partial "nav.html" . }}
-{{ end -}}
+{{ end }}
<main>