summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-21 21:36:29 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-21 21:36:29 +0300
commit930eabcbf1f986d676b04a2acdc9884f30fd5e4b (patch)
tree9ca610bee1f221bf287466e6707e38d0178f15e4
parent5b364613210c8b7186f63401e9ab96001e99c8a0 (diff)
downloadbenzin-930eabcbf1f986d676b04a2acdc9884f30fd5e4b.tar.gz
fix: do not append website title in RSS items
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
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 '/<head>/{' \
- -e 'a <title>' -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)