From: Joann Mõndresku Date: Sat, 24 Jul 2021 09:32:45 +0000 (+0300) Subject: Change RSS descriptions to use OpenGraph description X-Git-Url: https://git.based.quest/index.html?a=commitdiff_plain;h=7f10ed744edc523dad7426e20e43048320d4b1db;p=web-old.git Change RSS descriptions to use OpenGraph description --- diff --git a/blogit b/blogit index cfc7017..7cabbaa 100755 --- a/blogit +++ b/blogit @@ -184,7 +184,7 @@ blog/rss.xml: $(ARTICLES) "$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \ "$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \ "$$DATE" \ - "`sed -n 's/&/&/;1d;/^$$/{2{d;b};q};p' < $$FILE`"; \ + "`cat "$$FILE" | grep ";description:" | cut -d: -f2-`"; \ done >> $@ printf '\n\n' >> $@ @@ -202,6 +202,6 @@ blog/atom.xml: $(ARTICLES) "$$DATE" \ "`git log -n 1 --date="format:%Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad' -- "$$FILE"`" \ "$$AUTHOR" \ - "`sed -n 's/&/&/;1d;/^$$/{2{d;b};q};p' < $$FILE`"; \ + "`cat "$$FILE" | grep ";description:" | cut -d: -f2-`"; \ done >> $@ printf '\n' >> $@