wires

summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorwires <wires@noreply.wires.systems>2025-04-01 11:47:22 -0400
committerwires <wires@noreply.wires.systems>2025-04-01 11:47:22 -0400
commit506fa714a38a337135ebc75bc3cfa694becec458 (patch)
treef066c64659d2203539823212eeed33ef2ad2664d /layouts
parentredo home page (diff)
downloadblog-506fa714a38a337135ebc75bc3cfa694becec458.tar.gz
little tweaks to tags + comment color
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/taxonomy.html10
-rw-r--r--layouts/_default/term.html10
-rw-r--r--layouts/index.html21
3 files changed, 30 insertions, 11 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..75b0b34
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+<h2>{{ .Title }}</h2>
+<ul>
+  {{ range .Pages }}
+  <li>
+    <a href="{{ .Permalink }}">{{ .Title | lower }}</a>
+  </li>
+  {{ end }}
+</ul>
+{{ end }}
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
new file mode 100644
index 0000000..cf3239a
--- /dev/null
+++ b/layouts/_default/term.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+<h2>{{ .Title }}</h2>
+<ul>
+  {{ range .Pages }}
+  <li>
+    <a href="{{ .Permalink }}">{{ .Title }}</a>
+  </li>
+  {{ end }}
+</ul>
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index fd3d675..2289aac 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,14 +1,13 @@
-{{ define "main" }}
-{{ .Content }}
-{{ with .Site.RegularPages }}
+{{ define "main" }} {{ .Content }} {{ with .Site.RegularPages }}
 <h2>Posts</h2>
 <ul>
-{{ range . }}
-<li>
-<a href="{{ .Permalink }}">{{ .Title }}</a>
-{{ partial "tags.html" . }}
-</li>
-{{ end }}
+  {{ range . }}
+  <li>
+    <a href="{{ .Permalink }}">{{ .Title }}</a>
+    <time datetime="{{ .Lastmod }}">
+      {{ .Lastmod.Format "January 2, 2006" }}
+    </time>
+  </li>
+  {{ end }}
 </ul>
-{{ end }}
-{{ end }}
+{{ end }} {{ end }}