summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-11-27 14:58:32 (GMT)
committer Jaromil <jaromil@dyne.org>2013-11-27 14:58:32 (GMT)
commitc5806ce09a8e93d6b5df6c8bd91e2f02524fa6d6 (patch)
tree719285bba75e381a07ecc3cf1baa1adbc09b34fc
parent0f14a245d15314c6e819035f805f9afa044bcaf0 (diff)
configurable pub files extension
-rwxr-xr-xinit3
-rwxr-xr-xrender2
2 files changed, 3 insertions, 2 deletions
diff --git a/init b/init
index d9b1f48..6e2ebc1 100755
--- a/init
+++ b/init
@@ -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 } \ No newline at end of file
+{ test "$DIR" = "." } || { sleep 10 }
diff --git a/render b/render
index 9e790de..28d4b45 100755
--- a/render
+++ b/render
@@ -292,7 +292,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
cat <<EOF >> $dst