summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał M. Sapka <michal@sapka.me>2023-02-26 00:11:47 +0100
committerMichał M. Sapka <michal@sapka.me>2023-02-26 00:11:47 +0100
commit648f69aa0a2ef10095e23e58760eef4f68b396cb (patch)
tree7f0d5c66603156f9ffcd18f686bc0d4c865f9848
parent774625fd212104296a6d14ecb852e972d7e9fa34 (diff)
feat: all all archives page
-rw-r--r--content/archives/all.md (renamed from content/archive/all.md)1
-rw-r--r--layouts/_default/all_posts.html18
-rw-r--r--static/style.css5
3 files changed, 22 insertions, 2 deletions
diff --git a/content/archive/all.md b/content/archives/all.md
index 1c157e1..8065dae 100644
--- a/content/archive/all.md
+++ b/content/archives/all.md
@@ -1,6 +1,7 @@
---
title: "All"
type: "special"
+layout: all_posts
category:
abstract: all archives for this site
date: 2009-01-08T13:58:33+01:00
diff --git a/layouts/_default/all_posts.html b/layouts/_default/all_posts.html
new file mode 100644
index 0000000..51c9d65
--- /dev/null
+++ b/layouts/_default/all_posts.html
@@ -0,0 +1,18 @@
+{{ define "main" }}
+<article class="list taxonomy">
+ <h2>
+ All posts on this blog
+ </h2>
+ <ul>
+ {{ range where site.RegularPages "Type" "!=" "special"}}
+ <li>
+ <a href="{{ .Page.Permalink }}">
+ <time>{{ .PublishDate.Format "2006-01-02" }}</time>
+ &#183;
+ {{ .Page.Title }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+</article>
+{{ end }}
diff --git a/static/style.css b/static/style.css
index f382ab7..c7a664e 100644
--- a/static/style.css
+++ b/static/style.css
@@ -140,13 +140,14 @@
article {
margin-bottom: 20px;
padding: 25px;
- text-align: justify;
background-color: ##fcfcfc;
border-style: solid;
border-color: #f3f1f1;
border-radius: 3px;
box-shadow: -1px 8px 35px -18px rgba(0,0,0,0.42);
-
+}
+article p {
+ text-align: justify;
}
article a {
text-decoration: underline;