wires

summary refs log tree commit diff
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
parentredo home page (diff)
downloadblog-506fa714a38a337135ebc75bc3cfa694becec458.tar.gz
little tweaks to tags + comment color
-rw-r--r--assets/syntax.css2
-rw-r--r--hugo.toml7
-rw-r--r--layouts/_default/taxonomy.html10
-rw-r--r--layouts/_default/term.html10
-rw-r--r--layouts/index.html21
5 files changed, 37 insertions, 13 deletions
diff --git a/assets/syntax.css b/assets/syntax.css
index a7bee02..f823a25 100644
--- a/assets/syntax.css
+++ b/assets/syntax.css
@@ -1,6 +1,6 @@
 :root {
   --chroma-bg: #111;
-  --comment: #9e9e9e;
+  --comment: #7f849c;
   --cyan: #8be9fd;
   --green: #50fa7b;
   --orange: #ffb86c;
diff --git a/hugo.toml b/hugo.toml
index aee57cc..470efaf 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -3,7 +3,7 @@ languageCode = 'en-us'
 title = "wires"
 uglyurls = true
 enableGitInfo = true
-disableKinds = ['section', 'taxonomy']
+disableKinds = ['section']
 summaryLength = 10
 
 [taxonomies]
@@ -23,6 +23,11 @@ summaryLength = 10
     url = "/"
 
 [[menu.main]]
+    weight = -5
+    name = "tags"
+    url = "/tags.html"
+
+[[menu.main]]
     name = "rss"
     url = "/feed.xml"
 
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 }}