Updates everything

This commit is contained in:
Jonathan Hodgson 2025-07-11 19:05:04 +01:00
parent ea220efc38
commit 7cf34b3650
24 changed files with 1305 additions and 11 deletions

View file

@ -65,6 +65,10 @@ public/%/index.html: content/%.md tmp/templates/taglist.html
mkdir -p $(@D)
pandoc --template=templates/blog.html -f markdown -t html5 -M comments $< > $@
public/startpage/index.html: templates/startpage.html
mkdir -p $(@D)
cp $< $@
public/blog/%/index.gmi: content/blog/*-%.md
mkdir -p $(@D)
echo -n "# " > $@
@ -72,7 +76,14 @@ public/blog/%/index.gmi: content/blog/*-%.md
echo "" >> $@
md2gemini -f -l paragraph $< >> $@
public/card:
public/%/index.gmi: content/%.md
mkdir -p $(@D)
echo -n "# " > $@
grep 'title: ' $< | cut -d ' ' -f 2- >> $@
echo "" >> $@
md2gemini -f -l paragraph $< >> $@
public/card: content/card.curl
content/card.curl > $@
###########
@ -83,9 +94,9 @@ tags: $(foreach tag, $(ALLTAGS), public/tag/$(shell echo $(tag) | tr 'A-Z' 'a-z'
blogs: $(foreach blog, $(ALLBLOGS), public/blog/$(shell echo $(blog) | tr 'A-Z' 'a-z')/index.html ) $(foreach blog, $(ALLBLOGS), public/blog/$(shell echo $(blog) | tr 'A-Z' 'a-z')/index.gmi )
standalone: $(foreach page, $(STANDALONE), public/$(page)/index.html )
standalone: $(foreach page, $(STANDALONE), public/$(page)/index.html public/$(page)/index.gmi ) public/startpage/index.html
all: tags blogs standalone public/index.html public/feed.rss public/card
all: tags blogs standalone public/index.html public/index.gmi public/feed.rss public/card
push-blog:
rsync -azvhP ./public/ generalPurpose:docker/jonathanh/public