fix: link to archive
authorAngeloR <xangelo@gmail.com>
Wed, 29 Jan 2025 05:44:46 +0000 (00:44 -0500)
committerAngeloR <xangelo@gmail.com>
Wed, 29 Jan 2025 06:12:37 +0000 (01:12 -0500)
content/_list.md [deleted file]
content/all-posts/_index.md [new file with mode: 0644]
layouts/section/all-posts.html [new file with mode: 0644]
themes/brutalist-minimalist/layouts/partials/nav-links.html

diff --git a/content/_list.md b/content/_list.md
deleted file mode 100644 (file)
index 5ad6510..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: All Posts
-tags:
-  - publish
-date: 2024-12-12T14:45:17.752Z
-lastmod: 2024-12-12T15:38:57.828Z
----
-# All Posts
diff --git a/content/all-posts/_index.md b/content/all-posts/_index.md
new file mode 100644 (file)
index 0000000..5ad6510
--- /dev/null
@@ -0,0 +1,8 @@
+---
+title: All Posts
+tags:
+  - publish
+date: 2024-12-12T14:45:17.752Z
+lastmod: 2024-12-12T15:38:57.828Z
+---
+# All Posts
diff --git a/layouts/section/all-posts.html b/layouts/section/all-posts.html
new file mode 100644 (file)
index 0000000..159bebc
--- /dev/null
@@ -0,0 +1,13 @@
+{{ define "main" }}
+{{.Content}}
+
+{{ range .Site.RegularPages.GroupByDate "2006" }}
+  <h2>{{ .Key }}</h2>
+  <ul>
+    {{ range .Pages.ByTitle }}
+      <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+    {{ end }}
+  </ul>
+{{ end }}
+
+{{ end }}
index 66135435b1a56da704843d587ade905ac9f15dd8..ab861d336d729d1fdbb9663cb20d3da46079ade7 100644 (file)
@@ -24,6 +24,6 @@
 */}}
 
 <a href="{{ "/"              | relURL}}">Home</a>
-<a href="{{ "/list"          | relURL}}">Archive</a>
+<a href="{{ "/all-posts"          | relURL}}">Archive</a>
 <a href="{{ "/pages/links"          | relURL}}">Linkblog</a>
 <a href="{{ "/index.xml" | relURL }}"><img src="/icons/feed-icon-14x14.png"></a>