diff --git a/config/filters/index.js b/config/filters/index.js index 4881440b..21d04796 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -187,10 +187,13 @@ export default { return tags.filter((tag) => tag.toLowerCase() !== 'posts') }, formatTag: (string) => { - const capitalizeFirstLetter = (string) => { - return string.charAt(0).toUpperCase() + string.slice(1); - } - if (string === 'iOS' || string === 'macOS' || string === 'RSS') return `#${string}` + const capitalizeFirstLetter = (string) => string.charAt(0).toUpperCase() + string.slice(1) + const normalizedString = string.toLowerCase() + if ( + normalizedString === 'ios' || + normalizedString === 'macos' || + normalizedString === 'rss' + ) return `#${string}` if (!string.includes(' ')) return `#${capitalizeFirstLetter(string)}` return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}` } diff --git a/package.json b/package.json index 05519b91..3d9675bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "7.10.5", + "version": "7.10.6", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": {