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 = \ OUTPUTPOSTS = \
$(patsubst $(POSTSDIR)/%.md,$(BUILDDIR)/%.html,$(POSTS)) \ $(patsubst $(POSTSDIR)/%.md,$(BUILDDIR)/%.html,$(POSTS)) \
$(patsubst $(POSTSDIR)/%,$(BUILDDIR)/%,$(STATICS)) \ $(patsubst $(POSTSDIR)/%,$(BUILDDIR)/%,$(STATICS)) \
$(BUILDDIR)/all-posts.html $(BUILDDIR)/index.html
STYLE != find style -type f STYLE != find style -type f
OUTPUTSTYLE = $(patsubst %,$(BUILDDIR)/%,$(STYLE)) OUTPUTSTYLE = $(patsubst %,$(BUILDDIR)/%,$(STYLE))

View file

@ -43,13 +43,13 @@ makeMake :: [Set Text] -> Text
makeMake tags' = Text.unlines $ build : allPosts : map makeRule tags where makeMake tags' = Text.unlines $ build : allPosts : map makeRule tags where
build = Text.unwords $ build = Text.unwords $
"build:" : ["$(BUILDDIR)/" <> t <> ".html" | "build:" : ["$(BUILDDIR)/" <> t <> ".html" |
t <- ["all-tags", "all-posts"] <> map slug' tags] t <- ["all-tags", "index"] <> map slug' tags]
makeRule' opt title file = makeRule' opt title file =
"$(TMPDIR)/" <> file <> ".md : $(POSTS) $(POST_LISTS)\n\ "$(TMPDIR)/" <> file <> ".md : $(POSTS) $(POST_LISTS)\n\
\\t@echo \"[post-lists] $<\"\n\ \\t@echo \"[post-lists] $<\"\n\
\\t$(POST_LISTS) " <> opt <> " --out $@ \\\n\ \\t$(POST_LISTS) " <> opt <> " --out $@ \\\n\
\\t $(POSTSDIR) \"" <> title <> "\"" \\t $(POSTSDIR) \"" <> title <> "\""
allPosts = makeRule' "" "all posts" "all-posts" allPosts = makeRule' "" "all posts" "index"
makeRule t = makeRule t =
makeRule' ("--tag \"" <> name t <> "\"") makeRule' ("--tag \"" <> name t <> "\"")
("posts tagged " <> name t <> "") ("posts tagged " <> name t <> "")

View file

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