diff options
-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) |