support per-directory metadata dir.meta
This commit is contained in:
parent
6eac1472b5
commit
0b75d9ce1f
@ -8,6 +8,7 @@ target="$1"; shift
|
|||||||
file="$1"; shift
|
file="$1"; shift
|
||||||
ext="${file##*.}"
|
ext="${file##*.}"
|
||||||
meta="${file%.$ext}.meta"
|
meta="${file%.$ext}.meta"
|
||||||
|
dirmeta="${file%/*}/dir.meta"
|
||||||
page="${file##*/}"
|
page="${file##*/}"
|
||||||
page="${page%.$ext}.html"
|
page="${page%.$ext}.html"
|
||||||
destination=$(__zod_destination "$file")
|
destination=$(__zod_destination "$file")
|
||||||
@ -18,6 +19,7 @@ set -- "$@" -f "$zod_lib/config.awk"
|
|||||||
set -- "$@" -
|
set -- "$@" -
|
||||||
[ -f "$proj/global.meta" ] && set -- "$@" "$proj/global.meta"
|
[ -f "$proj/global.meta" ] && set -- "$@" "$proj/global.meta"
|
||||||
[ -f "$meta" ] && set -- "$@" "$meta"
|
[ -f "$meta" ] && set -- "$@" "$meta"
|
||||||
|
[ -f "$dirmeta" ] && set -- "$@" "$dirmeta"
|
||||||
set -- "$@" "$file"
|
set -- "$@" "$file"
|
||||||
[ -f "$proj/main.layout" ] && set -- "$@" "$proj/main.layout"
|
[ -f "$proj/main.layout" ] && set -- "$@" "$proj/main.layout"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user