dzcode-io / dzcode.io

Website & mobile app for Algerian open-source community
https://dzcode.io
MIT License
114 stars 41 forks source link

Use kebab-case for URLs #313

Open Fcmam5 opened 3 years ago

Fcmam5 commented 3 years ago

It looks a bit weird for me to see Pascal-case in DzCode.io links. Is there a narrative behind that? Or we should stick with the standard: Use kebab-lower-cases for urls. Example:

https://www.dzcode.io/Contribute
https://www.dzcode.io/contribute
ZibanPirate commented 3 years ago

This issue better be resolved now before is becomes a serious problem in the future, thanks @Fcmam5

https://www.searchenginejournal.com/url-capitalization-seo/343369/

This article list many ppl's opinions on this matter, and the way I see it, we should use :

It doesn't say anything about spaces in url, but I'm thinking instead of the kabab case style we use snake case, we use '_' instead of '-', because we already have composed words that uses '-' like "open-source"

I would love to hear your opinion on this along with @dzcode-io/maintainers

Fcmam5 commented 3 years ago

For API resources I'd go for -, same for article URLs (I don't have a strong opinion on this tho), some websites use kebab case like:

https://docs.github.com/en/rest/overview/openapi-description

And others use _(I'm talking abt article names and not sub pages/dirs)

https://en.wikipedia.org/wiki/Algerian_cuisine
abderrahmaneMustapha commented 2 years ago

hi @ZibanPirate and @Fcmam5 i can start work on this soon , i think that we need to talk about it more