Commit 79b389e
Strip commas from tag values when building blog tag links
Some posts declare tags using a comma-separated list (e.g. `tags: ai,
mcp, agent`) instead of the space-separated form. The Liquid template
in `_layouts/post.html` then rendered links like `/blog/tag/ai,` which
return a 404. Strip commas from both the URL and the displayed tag so
the links work regardless of the separator style used in front matter.1 parent 73d2275 commit 79b389e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments