From 3f989733ee58043340166178a4b0f09196e9515f Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Sun, 25 Jul 2021 14:54:27 +0200 Subject: [PATCH] all posts page is index --- Makefile | 2 +- blog-meta/all-tags.hs | 4 ++-- posts/{index.md => test.md} | 0 templates/foot.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename posts/{index.md => test.md} (100%) diff --git a/Makefile b/Makefile index f6dc4bc..d08ea84 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ STATICS != parallel find $(POSTSDIR) -name '\*.{}' ::: $(STATICEXTS) OUTPUTPOSTS = \ $(patsubst $(POSTSDIR)/%.md,$(BUILDDIR)/%.html,$(POSTS)) \ $(patsubst $(POSTSDIR)/%,$(BUILDDIR)/%,$(STATICS)) \ - $(BUILDDIR)/all-posts.html + $(BUILDDIR)/index.html STYLE != find style -type f OUTPUTSTYLE = $(patsubst %,$(BUILDDIR)/%,$(STYLE)) diff --git a/blog-meta/all-tags.hs b/blog-meta/all-tags.hs index 7276943..1b94b22 100644 --- a/blog-meta/all-tags.hs +++ b/blog-meta/all-tags.hs @@ -43,13 +43,13 @@ makeMake :: [Set Text] -> Text makeMake tags' = Text.unlines $ build : allPosts : map makeRule tags where build = Text.unwords $ "build:" : ["$(BUILDDIR)/" <> t <> ".html" | - t <- ["all-tags", "all-posts"] <> map slug' tags] + t <- ["all-tags", "index"] <> map slug' tags] makeRule' opt title file = "$(TMPDIR)/" <> file <> ".md : $(POSTS) $(POST_LISTS)\n\ \\t@echo \"[post-lists] $<\"\n\ \\t$(POST_LISTS) " <> opt <> " --out $@ \\\n\ \\t $(POSTSDIR) \"" <> title <> "\"" - allPosts = makeRule' "" "all posts" "all-posts" + allPosts = makeRule' "" "all posts" "index" makeRule t = makeRule' ("--tag \"" <> name t <> "\"") ("posts tagged ‘" <> name t <> "’") diff --git a/posts/index.md b/posts/test.md similarity index 100% rename from posts/index.md rename to posts/test.md diff --git a/templates/foot.html b/templates/foot.html index b893ee7..566fc81 100644 --- a/templates/foot.html +++ b/templates/foot.html @@ -1,7 +1,7 @@ $if(hide-footer)$$else$ $endif$