configurable pub files extension

This commit is contained in:
Jaromil 2013-11-27 15:58:32 +01:00
parent 2041bb7b02
commit e04332186d
2 changed files with 3 additions and 2 deletions

3
init
View File

@ -74,6 +74,7 @@ TITLE="A new website made with WebNomad."
BRAND="WebNomad"
DESCRIPTION="WebNomad, your slick and static website publisher, powered by HTML5, Zsh and Bootstrap"
KEYWORDS="web, design, html"
EXTENSION=".html"
EOF
}
@ -86,4 +87,4 @@ act "Look in your new WebNomad project: $B $DIR $r"
act "Customize $B config.zsh $r and then files in the $B tmpl/ $r folder"
act "Create new HTML pages in $B views/ $r"
{ test "$DIR" = "." } || { sleep 10 }
{ test "$DIR" = "." } || { sleep 10 }

2
render
View File

@ -296,7 +296,7 @@ for src in $htmls; do
cat ${src} | read_meta
# compute destination file
dst="pub/`basename ${src%.*}`"
dst="pub/`basename ${src%.*}`${EXTENSION}"
render_header > $dst