diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 19:49:53 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 19:49:53 +0300 |
commit | 06c8229e692f3e0ea8813b31cdd624ad69082269 (patch) | |
tree | 6fb3497b42dcb470ca91d69b1c12269de3176fd5 | |
parent | b9f6105139f223672cbdc56efccfa06d55c314a4 (diff) | |
download | benzin-06c8229e692f3e0ea8813b31cdd624ad69082269.tar.gz |
feat: grab openring urls from file
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ BLOG_PREVIEW_MARKER=Recent blog posts RSS=out/blog/index.xml OPENRING_FOOTER=tmp/openring.html -OPENRING_ARGS=-s https://eug-vs.xyz/blog/index.xml -s https://drewdevault.com/blog/index.xml +OPENRING_URLS=src/urls BLOG_SOURCES=$(wildcard src/blog/*.md) SOURCES=$(wildcard src/*.md) $(BLOG_SOURCES) @@ -96,9 +96,9 @@ tmp/%.xml: tmp/%.content.html tmp/%.meta.title tmp/%.meta.date $(RSS_ITEM_TEMPLA -e "a <link>$(WEBSITE_URL)/$*.html<\/link>" \ -e '}' $@ -$(OPENRING_FOOTER): $(OPENRING_TEMPLATE) +$(OPENRING_FOOTER): $(OPENRING_TEMPLATE) $(OPENRING_URLS) @mkdir -p $(@D) - openring $(OPENRING_ARGS) < $< > $@ + openring $$(sed '/^#/d; s/^/-s /' $(OPENRING_URLS)) < $< > $@ out/public/%: src/public/% @mkdir -p $(@D) |