summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-21 19:49:53 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-21 19:49:53 +0300
commit06c8229e692f3e0ea8813b31cdd624ad69082269 (patch)
tree6fb3497b42dcb470ca91d69b1c12269de3176fd5
parentb9f6105139f223672cbdc56efccfa06d55c314a4 (diff)
downloadbenzin-06c8229e692f3e0ea8813b31cdd624ad69082269.tar.gz
feat: grab openring urls from file
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 22faeb9..67f46a5 100644
--- a/Makefile
+++ b/Makefile
@@ -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)