assign $page when its needed
This commit is contained in:
parent
eb2b3e0660
commit
19b6925b86
@ -32,9 +32,6 @@ if [ $ext == "md" ] || [ $ext == "html" ]; then
|
||||
meta=${f%.$ext}.meta
|
||||
[ -f "$meta" ] && page_meta_opts="$meta"
|
||||
|
||||
page=${f##*/}
|
||||
page=${page%.$ext}.html
|
||||
|
||||
set -- -f "$zod_lib/render.awk"
|
||||
[ "$helper_opts" ] && set -- "$@" -f "$helper_opts"
|
||||
set -- "$@" -v markdown_filter_cmd="$markdown_filter_cmd" \
|
||||
@ -43,6 +40,9 @@ if [ $ext == "md" ] || [ $ext == "html" ]; then
|
||||
"$f" \
|
||||
"$layout_opts"
|
||||
|
||||
page=${f##*/}
|
||||
page=${page%.$ext}.html
|
||||
|
||||
awk "$@" > "$destination/$page"
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user