diff options
Diffstat (limited to 'Makefile')
-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) |