build: Omit header and footer from redirects.

This commit is contained in:
Bradley Sepos
2016-04-13 17:31:24 -04:00
parent a595652d90
commit c19801dbba

View File

@@ -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' \