minor fixes
This commit is contained in:
parent
bc5afe8cd1
commit
1b7f0d98e7
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
direnv reload
|
direnv reload
|
||||||
|
./engine/build.sh
|
||||||
echo "Watching $PWD/{src,templates}"
|
echo "Watching $PWD/{src,templates}"
|
||||||
# fswatch --exclude='\\.#' src | while read event; do
|
# fswatch --exclude='\\.#' src | while read event; do
|
||||||
fswatch --exclude='^.*\.#.*$' src templates | while read event; do
|
fswatch --exclude='^.*\.#.*$' src templates | while read event; do
|
||||||
|
|
|
@ -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
|
# the pandoc templates use $x$ format, we replace it by just $x
|
||||||
# to be used with envsubst
|
# to be used with envsubst
|
||||||
template=$(< templates/post.html | \
|
template=$(< templates/post.html | \
|
||||||
sed 's/\$(header-includes|table-of-content)\$//' | \
|
sed 's/\$\(header-includes\|table-of-content\)\$//' | \
|
||||||
sed 's/\$if.*\$//' | \
|
sed 's/\$if.*\$//' | \
|
||||||
perl -pe 's#(\$[^\$]*)\$#$1#g' )
|
perl -pe 's#(\$[^\$]*)\$#$1#g' )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue