mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2025-12-11 22:24:11 -06:00
build: Rename advanced navigation variable.
This commit is contained in:
parent
37e989ba4a
commit
7f401bfb8d
@ -201,11 +201,11 @@ function build_source {
|
||||
-e 's|<a (href="[^"]*'"${DEST_NAME}.html"'"[^>]*)>([^<>]+)</a>|<a \1 class="selected">\2</a>|g' \
|
||||
"${NAVIGATION_PARTIAL}" > "${DEST}.nav.partial.html"
|
||||
sed -E \
|
||||
-e '/\{\{[ ]*include\.navigation[ ]*\}\}/{r '"${DEST}.nav.partial.html" -e 'd;}' \
|
||||
-e '/\{\{[ ]*navigation[ ]*\}\}/{r '"${DEST}.nav.partial.html" -e 'd;}' \
|
||||
-i.sedbak "${DEST}.html"
|
||||
else
|
||||
sed -E \
|
||||
-e '/\{\{[ ]*include\.navigation[ ]*\}\}/d' \
|
||||
-e '/\{\{[ ]*navigation[ ]*\}\}/d' \
|
||||
-i.sedbak "${DEST}.html"
|
||||
fi
|
||||
# process template tags
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user