mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2026-04-21 13:24:09 -05:00
build: Omit header and footer from redirects.
This commit is contained in:
@@ -112,8 +112,8 @@ function build_source {
|
||||
# partial html
|
||||
cp "${TEMPLATE_Document}" "${DEST}.html"
|
||||
fi
|
||||
# omit header and footer templates from license documents
|
||||
if [[ "${DEST_NAME}" == "license" ]] || [[ "${DEST_NAME}" == "license-summary" ]]; then
|
||||
# omit header and footer templates from redirects and license documents
|
||||
if [[ "${DOCUMENT_Redirect_URL:-}" != "" ]] || [[ "${DEST_NAME}" == "license" ]] || [[ "${DEST_NAME}" == "license-summary" ]]; then
|
||||
sed -E \
|
||||
-e 's|\{\{[ ]*template\.header[ ]*\}\}||g' \
|
||||
-e 's|\{\{[ ]*template\.footer[ ]*\}\}||g' \
|
||||
|
||||
Reference in New Issue
Block a user