From 293dbd13c57ef755a29791118edc9dfe47b254e7 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:27:25 -0500 Subject: [PATCH] update draft --- content/posts/the-slash-page-scoop/index.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/posts/the-slash-page-scoop/index.md b/content/posts/the-slash-page-scoop/index.md index db8ad69..1d8d882 100644 --- a/content/posts/the-slash-page-scoop/index.md +++ b/content/posts/the-slash-page-scoop/index.md @@ -135,7 +135,7 @@ So instead of rendering the `description` I defined in the front matter the arch > *My collection of [slash pages](https://slashpages.net).* -While I'm at it, I'd like for the posts themselves to be listed in alphabetical order rather than sorted by date. So here's how the rest of my existing `archive.html` partial template handles displaying posts: +While I'm at it, I'd like for the slash pages themselves to be listed in alphabetical order rather than sorted by date (like everything else on the site). The rest of my `layouts/partials/archive.html` already handles a few different ways of displaying lists of content: ```jinja-html # torchlight! {"lineNumbers":true} @@ -161,18 +161,18 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical

{{ .Title | markdownify }}

- {{ .Description }} + {{ .Description }}

{{ end }} {{- end }} {{- else }} - {{/* regular posts archive */}} + {{/* regular posts archive */}} {{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }} @@ -180,11 +180,11 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical

{{ .Title | markdownify }}

- {{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }} + {{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}

@@ -193,4 +193,5 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical {{- end }} ``` -Basically: if it's the [tags](/tags/) archive page, it will list out all the tags in a compact way. If it's some other taxonomy page, +1. The [tags](/tags/) archive (list of all tags) uses a very condensed format for displaying all the tags in one place. +2. Other archives of taxonomy pages (like the list of all [categories](/categories/)) have the