diff options
author | EuAndreh <eu@euandre.org> | 2020-12-19 13:45:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-19 13:49:07 -0300 |
commit | 155eb972fe0f4f0492899a5542a21471ad9f5948 (patch) | |
tree | fb65cf2f2f9b39afb5408ce44f4d1920e089a4e9 /scripts/assert-content.sh | |
parent | Add Podcast structure, with public entrypoint commented out (diff) | |
download | euandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.gz euandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.xz |
Fix translation navigation link of collections
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-content.sh | 13 |
1 files changed, 7 insertions, 6 deletions
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 |