From 06c8229e692f3e0ea8813b31cdd624ad69082269 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 21 Apr 2022 19:49:53 +0300 Subject: feat: grab openring urls from file --- Makefile | 6 +++--- 1 file 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 $(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) -- cgit v1.2.3