cleanup and variablization

This commit is contained in:
Luke Smith
2022-06-28 19:06:38 -04:00
parent f729985265
commit d3a6b31e4a
8 changed files with 40 additions and 55 deletions

View File

@@ -1,22 +1,14 @@
{{ partial "header.html" . }}
<header><h1>{{ .Title }}</h1></header>
<article>
{{ .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 }}
</ul>
</article>
{{ partial "footer.html" . }}

View File

@@ -1,11 +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 }}
</article>
{{ partial "footer.html" . }}

View File

@@ -1,14 +1,9 @@
{{ 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" . }}