scientific-python / blog.scientific-python.org

Community blog posts on scientific-python.org
https://blog.scientific-python.org
Other
23 stars 33 forks source link

Feature Request: Allow tags with spaces #84

Open rossbar opened 2 years ago

rossbar commented 2 years ago

This is a super minor feature, but it'd be nice (IMO) to allow post tags to have spaces, e.g. "traveling salesman problem". The current problem with this is that the tag is directly translated to a URL, so the spaces result in an invalid address. Perhaps this feature would be as easy as adding something along the lines of {{ tag.replace(" ", "-") }} in one the template/partial for the /tags page?

Not a big deal, just a potential tiny improvement. The current behavior is also fine so long as authors know their tags should contain only URL-safe characters.

jarrodmillman commented 2 years ago

Go for it!

stefanv commented 1 month ago

See https://gohugo.io/functions/urls/urlize/