aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-19 13:45:50 -0300
committerEuAndreh <eu@euandre.org>2020-12-19 13:49:07 -0300
commit155eb972fe0f4f0492899a5542a21471ad9f5948 (patch)
treefb65cf2f2f9b39afb5408ce44f4d1920e089a4e9 /scripts
parentAdd Podcast structure, with public entrypoint commented out (diff)
downloadeuandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.gz
euandre.org-155eb972fe0f4f0492899a5542a21471ad9f5948.tar.xz
Fix translation navigation link of collections
Diffstat (limited to '')
-rwxr-xr-xscripts/assert-content.sh13
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