mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Compare commits
2 Commits
zshopt
...
jekyll_esc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a82e0cdb37 | ||
|
|
80d0b2844e |
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user