remove tag.html and whitespace fixes

This commit is contained in:
Luke Smith 2022-07-11 14:11:52 -04:00
parent c9145df04f
commit 07c8d9debf
5 changed files with 14 additions and 26 deletions

View File

@ -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> &ndash;
<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> &ndash; <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end -}}
</ul>
</article>
{{ partial "footer.html" . }}
{{- partial "footer.html" . }}

View File

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

View File

@ -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> &ndash; <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}</ul>
</article>
{{ partial "footer.html" . }}

View File

@ -1,4 +1,4 @@
{{ partial "taglist.html" . }}
{{ partial "taglist.html" . -}}
</main>
<footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>

View File

@ -15,7 +15,7 @@
<meta charset="utf-8">
</head>
<body>
{{ if .Site.Menus.main -}}
{{- if .Site.Menus.main }}
{{ partial "nav.html" . }}
{{ end -}}
{{ end }}
<main>