diff --git a/content/tutorials/2023-01-23-programatically-add-tags-posts-in-11ty.md b/content/tutorials/2023-01-30-programatically-add-tags-posts-in-11ty.md similarity index 88% rename from content/tutorials/2023-01-23-programatically-add-tags-posts-in-11ty.md rename to content/tutorials/2023-01-30-programatically-add-tags-posts-in-11ty.md index 99854ec1..a752e089 100644 --- a/content/tutorials/2023-01-23-programatically-add-tags-posts-in-11ty.md +++ b/content/tutorials/2023-01-30-programatically-add-tags-posts-in-11ty.md @@ -84,10 +84,3 @@ markdownIt.renderer.rules.hashtag_open = eleventyConfig.setLibrary("md", markdownIt); ``` - -## Normalising Tags - -There is [some discussion](https://github.com/11ty/eleventy/issues/2462) regarding case sensitivity with tags. In my opinion tags should be insensitive to case but also presented in a human way. For example "ToolsAndResources" should become the slug "tools-and-resources" but display as "Tools And Resources". There are of course exceptions to this: "JavaScript" for example is one word and "PHP" should always remain capitalised. There is also the case where "GameDev" and "GameDevelopment" should be considered the same with both linking to the same destination. - -These cases make normalising tags for human readability a difficult problem but not insurmountable. - diff --git a/content/tutorials/2023-02-03-normalising-tags.md b/content/tutorials/2023-02-03-normalising-tags.md new file mode 100644 index 00000000..61971103 --- /dev/null +++ b/content/tutorials/2023-02-03-normalising-tags.md @@ -0,0 +1,15 @@ +--- +title: Normalising Tags +tags: ["11ty"] +growthStage: stub +--- + +## Preface + +There is [some discussion](https://github.com/11ty/eleventy/issues/2462) regarding case sensitivity with tags. In my opinion tags should be insensitive to case but also presented in a human way. For example "ToolsAndResources" should become the slug "tools-and-resources" but display as "Tools And Resources". There are of course exceptions to this: "JavaScript" for example is one word and "PHP" should always remain capitalised. There is also the case where "GameDev" and "GameDevelopment" should be considered the same with both linking to the same destination. + +These cases make normalising tags for human readability a difficult problem but not insurmountable. + +## Todo + +This post should be linked to from "How to programmatically add tags to posts". \ No newline at end of file