diff --git a/init b/init index a5a5774..b40e030 100755 --- a/init +++ b/init @@ -74,7 +74,7 @@ DESCRIPTION="WebNomad, your slick and static website publisher, powered by HTML5 KEYWORDS="web, design, html" -# representative image, 1200 pixel width is full column banner, 400 is half +# representative image, 1200x630 pixels is full column banner, 400 is half IMAGE="https://www.dyne.org/wp-content/uploads/2013/09/carciofo-webnomad.jpg" # list of types: http://ogp.me/#types diff --git a/render b/render index ee58aad..3bd31a6 100755 --- a/render +++ b/render @@ -189,7 +189,7 @@ EOF [[ "$1" = "" ]] || { print "${@}"; print } # include all css files found in views/css - jsfound=`find $DIR/views/js -name '*.js'` + jsfound=`find $DIR/views/js -type f -name '*.js'` for j in ${(f)jsfound}; do includejs+=(${j##*/}) done @@ -201,9 +201,9 @@ EOF EOF if [[ -r "$DIR"/views/js/$j ]]; then - cp -a "$DIR"/views/js/$j "$destination"/js - elif [[ -r "$SYS"/js/$i ]]; then - cp -a "$SYS"/js/$i "$destination"/js + cp -f "$DIR"/views/js/$j "$destination"/js + elif [[ -r "$SYS"/js/$j ]]; then + cp -f "$SYS"/js/$j "$destination"/js fi done