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" . }} {{ partial "header.html" . -}}
<header><h1>{{ .Title }}</h1></header> <header><h1 id="tag_{{ .Title }}">{{ .Title | title }}</h1></header>
<article> <article>
{{ .Content }} {{ .Content -}}
<ul> <ul>
{{ range.Pages }} {{- range.Pages }}
<li> <li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> &ndash; <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> &ndash; {{ end -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul> </ul>
</article> </article>
{{ partial "footer.html" . }} {{- partial "footer.html" . }}

View File

@ -1,6 +1,6 @@
{{ partial "header.html" . }} {{ partial "header.html" . -}}
<header><h1>{{ with .Params.icon }}<img src="/pix/{{ . }}" class=titleicon>{{ end }}{{ .Title }}</h1></header> <header><h1>{{ .Title }}</h1></header>
<article>{{ with .Params.img }}<img src="/pix/{{ . }}" class=titleimg>{{ end }} <article>
{{ .Content }} {{ .Content -}}
</article> </article>
{{ partial "footer.html" . }} {{ 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> </main>
<footer> <footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br> <a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>

View File

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