From 930eabcbf1f986d676b04a2acdc9884f30fd5e4b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 21 Apr 2022 21:36:29 +0300 Subject: fix: do not append website title in RSS items --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 82f8f2f..22ce39a 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ out/%.html: tmp/%.content.html tmp/%.meta.title tmp/%.meta.description $(PAGE_TE sed "/<\/main>/e cat $< $(OPENRING_FOOTER)" $(PAGE_TEMPLATE) > $@ sed -i \ -e '//{' \ - -e 'a ' -e "r tmp/$*.meta.title" -e 'a <\/title>' \ + -e 'a <title>' -e "r tmp/$*.meta.title" -e "a | $(WEBSITE_TITLE) <\/title>" \ -e 'a <meta name="description" content="' -e "r tmp/$*.meta.description" -e 'a "/>' \ -e '}' $@ @@ -66,8 +66,7 @@ tmp/index.content.html: src/index.md tmp/emoji.sed tmp/blog/preview.md tmp/%.meta.title: src/%.md @mkdir -p $(@D) - sed '/^#/q' $< | sed 's/#* //' > $@ - @echo "| $(WEBSITE_TITLE)" >> $@ + sed '/^#/q' $< | sed 's/#* //; s/:.*://;' > $@ tmp/%.meta.description: src/%.md @mkdir -p $(@D) -- cgit v1.2.3