diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 05:38:12 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 05:38:12 +0300 |
commit | 2c25e0a927ef940561609314d0896ccf13d90ae6 (patch) | |
tree | 6b5f2b63b57e01c6eb438ca33098c0ddf493622b | |
parent | 80b0b83d7d64fe4468edb81e8fb970475c8f9efe (diff) | |
download | benzin-2c25e0a927ef940561609314d0896ccf13d90ae6.tar.gz |
feat: add Openring footer
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,9 +1,13 @@ # BENZIN Makefile -HEADER=templates/header.html PANDOC_ARGS=--from=gfm+emoji --to=html --section-divs +HEADER=templates/header.html +OPENRING_TEMPLATE=templates/openring.html RSS=out/blog/index.xml +OPENRING_FOOTER=tmp/openring.html +OPENRING_ARGS=-s https://eug-vs.xyz/blog/index.xml + BLOG_SOURCES=$(wildcard src/blog/*.md) SOURCES=$(wildcard src/*.md) $(BLOG_SOURCES) @@ -17,7 +21,7 @@ BLOG_XML=$(patsubst src/%.md, tmp/%.xml, $(BLOG_SOURCES)) all: $(HTML) $(RSS) -out/%.html: $(HEADER) tmp/%.content.html +out/%.html: $(HEADER) tmp/%.content.html $(OPENRING_FOOTER) @mkdir -p $(@D) cat $^ > $@ @@ -43,5 +47,9 @@ tmp/%.xml: tmp/%.content.html @echo " ]]></description>" >> $@ @echo '</item>' >> $@ +$(OPENRING_FOOTER): $(OPENRING_TEMPLATE) + @mkdir -p $(@D) + openring $(OPENRING_ARGS) < $< > $@ + clean: rm -rf tmp out |