diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-content.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index 7f5aa5f..f3681c9 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -87,14 +87,11 @@ assert-frontmatter() { REF="$(get-ref "$F")" URL="$(get-url "$F")" LAYOUT="$(get-layout "$F")" + TITLE="$(get-title "$F")" [[ -z "${LLANG}" ]] && fail-attr 'lang' "${URL}" [[ -z "${REF}" ]] && fail-attr 'ref' "${URL}" - - if ! contains-element "${URL}" "${IGNORED_PAGES[@]}"; then - TITLE="$(get-title "$F")" - [[ -z "${TITLE}" ]] && fail-attr 'title' "${URL}" - fi + [[ -z "${TITLE}" ]] && fail-attr 'title' "${URL}" if ! contains-element "${LLANG}" "${LANGS[@]}"; then red "Invalid lang '${LLANG}' in ${URL}." >&2 |