hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit dc4e60b7d8f8973984d774887c6666b9940a34d7
parent 2e88986446f9104d2ba358abbb2d22a297ca36a0
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Thu, 16 Mar 2017 11:37:45 -0400

Add a comment

Diffstat:
Mfakestache | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/fakestache b/fakestache @@ -43,6 +43,8 @@ case $1 in # Remove special chars and white spaces for the filename archetype_title_nospecials=${archetype_title//[\'!,:;?]/} archetype_filename=${archetype_title_nospecials// /-}.md + # Use this instead : echo Hej på dig, du den dära | iconv -f utf-8 -t us-ascii//translit + # Source <http://stackoverflow.com/questions/1975057/bash-convert-non-ascii-characters-to-ascii> mkdir -p "$CONTENT_PATH/$1/${NOW_DATE:0:4}/${NOW_DATE:5:2}/"