From a82e0cdb37e2f0df53db913defc7b3f97f26be91 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 2 Oct 2019 21:43:01 -0700 Subject: [PATCH] Fix escaping of Jekyll titles. --- dotfiles/zshrc.d/jekyll.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/zshrc.d/jekyll.zsh b/dotfiles/zshrc.d/jekyll.zsh index 9e3425a..bcc4e42 100644 --- a/dotfiles/zshrc.d/jekyll.zsh +++ b/dotfiles/zshrc.d/jekyll.zsh @@ -80,6 +80,7 @@ function jekyll { tr -c -s -- a-z0-9 - | # Replace non-alphanums with dashes sed 's/^-*\([^-].*[^-]\)-*$/\1/' # Remove leading and trailing slashes ) + TITLE=$(echo ${TITLE} | sed 's/\\/\\\\/g;s/"/\\"/g') DATE=`date +%Y-%m-%d` case "${1:-help}" in