baker icon indicating copy to clipboard operation
baker copied to clipboard

DraftDir + manage accent for slug()

Open Flyounet opened this issue 10 years ago • 0 comments

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

Flyounet avatar Nov 21 '15 20:11 Flyounet