Avoid interpreting Liquid in doc pages

They are auto-generated, so they wouldn't normally contain Liquid
(The post-processor may insert some, but it has control over the `raw` tags)
Some code introduced as examples contains `{{` due to nested brace expansions,
which was interpreted as (invalid) Liquid. This fixes such problems.
Additionally, Jekyll generates warnings about excerpts being part of a Liquid
block (the `{% raw %}`). This is fine, since doc pages don't use excerpts.
This commit is contained in:
ISSOtm
2020-12-14 10:35:30 +01:00
parent 8f2a894b88
commit 4ef490f3cb
2 changed files with 9 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ stem="${page%.html}"
manpage="${stem%.?}(${stem#*.})"
descr="$(awk -v 'FS=.Nd ' '/.Nd/ { print $2; }' "${PAGES[$page]}")"
cat - >"$1/$2/$page" <<EOF
cat >"$1/$2/$page" <<EOF
---
layout: doc
title: $manpage [$2]