all posts page is index

This commit is contained in:
rhiannon morris 2021-07-25 14:54:27 +02:00
parent 533efb5a31
commit 3f989733ee
4 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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 <> "")

View File

@ -1,7 +1,7 @@
$if(hide-footer)$$else$
<footer>
<hr>
<a href=/all-posts.html>all posts</a> ·
<a href=/index.html>all posts</a> ·
<a href=/all-tags.html>all tags</a>
</footer>
$endif$