From 155eb972fe0f4f0492899a5542a21471ad9f5948 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 19 Dec 2020 13:45:50 -0300 Subject: Fix translation navigation link of collections --- scripts/assert-content.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index e8d0382..cdd2a01 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -120,7 +120,7 @@ assert-frontmatter() { exit 1 } - if [[ "$PREFIX" != '_pastebins/' ]] && [[ "$LLANG" = 'en' ]]; then + if [[ "$LLANG" = 'en' ]]; then TITLE_SLUG="$(slugify "$TITLE")" if [[ "$TITLE_SLUG" != "$REF" ]]; then red "ref isn't the slug of the title." @@ -193,10 +193,11 @@ assert-unique-ref() { done } -assert-unique-ref "$(jq -r '.pages[] | @base64' "${JSON}")" 'page' -assert-unique-ref "$(jq -r '.articles[] | @base64' "${JSON}")" 'article' -assert-unique-ref "$(jq -r '.tils[] | @base64' "${JSON}")" 'til' -assert-unique-ref "$(jq -r '.slides[] | @base64' "${JSON}")" 'slides' -assert-unique-ref "$(jq -r '.podcasts[] | @base64' "${JSON}")" 'podcasts' +assert-unique-ref "$(jq -r '.pages[] | @base64' "${JSON}")" 'page' +assert-unique-ref "$(jq -r '.articles[] | @base64' "${JSON}")" 'article' +assert-unique-ref "$(jq -r '.tils[] | @base64' "${JSON}")" 'til' +assert-unique-ref "$(jq -r '.pastebins[] | @base64' "${JSON}")" 'pastebin' +assert-unique-ref "$(jq -r '.slides[] | @base64' "${JSON}")" 'slides' +assert-unique-ref "$(jq -r '.podcasts[] | @base64' "${JSON}")" 'podcasts' echo Done. >&2 -- cgit v1.2.3