minor fixes

This commit is contained in:
Yann Esposito (Yogsototh) 2021-05-09 21:41:34 +02:00
parent bc5afe8cd1
commit 1b7f0d98e7
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
direnv reload
./engine/build.sh
echo "Watching $PWD/{src,templates}"
# fswatch --exclude='\\.#' src | while read event; do
fswatch --exclude='^.*\.#.*$' src templates | while read event; do

View file

@ -130,7 +130,7 @@ date=$(LC_TIME=en_US date +'%Y-%m-%d')
# the pandoc templates use $x$ format, we replace it by just $x
# to be used with envsubst
template=$(< templates/post.html | \
sed 's/\$(header-includes|table-of-content)\$//' | \
sed 's/\$\(header-includes\|table-of-content\)\$//' | \
sed 's/\$if.*\$//' | \
perl -pe 's#(\$[^\$]*)\$#$1#g' )
{