Fix escaping of Jekyll titles.

This commit is contained in:
David Tomaschik
2019-10-02 21:43:01 -07:00
parent 80d0b2844e
commit a82e0cdb37

View File

@@ -80,6 +80,7 @@ function jekyll {
tr -c -s -- a-z0-9 - | # Replace non-alphanums with dashes tr -c -s -- a-z0-9 - | # Replace non-alphanums with dashes
sed 's/^-*\([^-].*[^-]\)-*$/\1/' # Remove leading and trailing slashes sed 's/^-*\([^-].*[^-]\)-*$/\1/' # Remove leading and trailing slashes
) )
TITLE=$(echo ${TITLE} | sed 's/\\/\\\\/g;s/"/\\"/g')
DATE=`date +%Y-%m-%d` DATE=`date +%Y-%m-%d`
case "${1:-help}" in case "${1:-help}" in