diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 21:36:29 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-21 21:36:29 +0300 |
commit | 930eabcbf1f986d676b04a2acdc9884f30fd5e4b (patch) | |
tree | 9ca610bee1f221bf287466e6707e38d0178f15e4 | |
parent | 5b364613210c8b7186f63401e9ab96001e99c8a0 (diff) | |
download | benzin-930eabcbf1f986d676b04a2acdc9884f30fd5e4b.tar.gz |
fix: do not append website title in RSS items
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |