fix: artist urls

This commit is contained in:
Cory Dransfeldt 2024-07-03 14:24:05 -07:00
parent faa3c78cad
commit 1ba414c3c8
No known key found for this signature in database
3 changed files with 2 additions and 7 deletions

View file

@ -48,12 +48,6 @@
/feeds/posts/2024/integrating-a-somewhat-custom-cms-with-eleventy/ /posts/2024/integrating-a-somewhat-custom-cms-with-eleventy/ 301 /feeds/posts/2024/integrating-a-somewhat-custom-cms-with-eleventy/ /posts/2024/integrating-a-somewhat-custom-cms-with-eleventy/ 301
/feeds/not-allowed /not-allowed 301 /feeds/not-allowed /not-allowed 301
# music
/music/artists/hyperdontia-denmark-turkiye /music/artists/hyperdontia-denmark-tuerkiye 301
/music/artists/engulfed-turkiye /music/artists/engulfed-tuerkiye 301
/music/artists/decaying-purity-turkiye /music/artists/decaying-purity-tuerkiye 301
/music/artists/burial-invocation-turkiye /music/artists/burial-invocation-tuerkiye
# 404s # 404s
/robot.txt /robots.txt 301 /robot.txt /robots.txt 301
robotx.txt /robots.txt 301 robotx.txt /robots.txt 301

View file

@ -23,6 +23,7 @@ export default {
replaceQuotes: (string) => string.replace(/"/g, "'"), replaceQuotes: (string) => string.replace(/"/g, "'"),
formatNumber: (number) => number.toLocaleString('en-US'), formatNumber: (number) => number.toLocaleString('en-US'),
shuffleArray, shuffleArray,
sanitizeMediaString,
// navigation // navigation
isLinkActive: (category, page) => page.includes(category) && page.split('/').filter(a => a !== '').length <= 1, isLinkActive: (category, page) => page.includes(category) && page.split('/').filter(a => a !== '').length <= 1,

View file

@ -4,7 +4,7 @@ pagination:
data: artists data: artists
size: 1 size: 1
alias: artist alias: artist
permalink: "/music/artists/{{ artist.name_string | slugify | downcase }}-{{ artist.country | slugify | downcase}}/index.html" permalink: "/music/artists/{{ artist.name_string | sanitizeMediaString }}-{{ artist.country | sanitizeMediaString }}/index.html"
updated: "now" updated: "now"
schema: artist schema: artist
--- ---