Merge pull request #9 from Matir/jekyll_esc

Fix escaping of Jekyll titles.
This commit is contained in:
David Tomaschik
2019-10-02 21:43:41 -07:00
committed by GitHub

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