baker
baker copied to clipboard
DraftDir + manage accent for slug()
Draftdir : This feature generates a directory where th e posts in draft mode are generated.
The modification for slug is a feature for people who use a language with accent. For example : echo 'Baker est très bien' | tr -cs '[:alnum:]\n' - | tr '[:upper:]' '[:lower:]' | sed 's|^-||;s|-$||' baker-est-tr-s-bien
Now it handles them : echo 'Baker est très bien' | iconv -f utf8 -t ascii//TRANSLIT | tr -cs '[:alnum:]\n' - | tr '[:upper:]' '[:lower:]' | sed 's|^-||;s|-$||' baker-est-tres-bien