torrust / torrust-website

Public Website for Torrust Organisation
https://torrust.com
GNU General Public License v3.0
1 stars 2 forks source link

add article/ to url for each blog post #96

Closed grmbyrn closed 1 week ago

grmbyrn commented 2 weeks ago

Change (article) to article so that it appears in the url for blog posts, for example /article/released-v3-0-0-beta, as in Add a path segment in the URL for sections #73

grmbyrn commented 2 weeks ago

Hi @grmbyrn any reason to use article instead of blog?

I think article is more generic, in the future we could have this prefix for new sections (tutorials, news, ...). All of them would be articles of a given section.

What do you think? I know we call them articles everywhere, and article sounds more professional and formal.

Hi @josecelano I called it article because that's what it had been when it was in () as an anonymous route, and also because we currently have a blog route and you can't have two with the same name. The route for blog can be changed, eg: /blogs, and article/article-name could then be changed to blog/article-name.

josecelano commented 2 weeks ago

Hi @grmbyrn any reason to use article instead of blog? I think article is more generic, in the future we could have this prefix for new sections (tutorials, news, ...). All of them would be articles of a given section. What do you think? I know we call them articles everywhere, and article sounds more professional and formal.

Hi @josecelano I called it article because that's what it had been when it was in () as an anonymous route, and also because we currently have a blog route and you can't have two with the same name. The route for blog can be changed, eg: /blogs, and article/article-name could then be changed to blog/article-name.

I would do it like this:

https://torrust.com/blog https://torrust.com/blog/released-v3-0-0

Which is, I think, very common. (I guess you can have an index page in the folder). If that's not possible in Svelte (I don't think so) we can use:

https://torrust.com/blog https://torrust.com/blog-post/released-v3-0-0

grmbyrn commented 2 weeks ago

Hi @grmbyrn any reason to use article instead of blog? I think article is more generic, in the future we could have this prefix for new sections (tutorials, news, ...). All of them would be articles of a given section. What do you think? I know we call them articles everywhere, and article sounds more professional and formal.

Hi @josecelano I called it article because that's what it had been when it was in () as an anonymous route, and also because we currently have a blog route and you can't have two with the same name. The route for blog can be changed, eg: /blogs, and article/article-name could then be changed to blog/article-name.

I would do it like this:

https://torrust.com/blog https://torrust.com/blog/released-v3-0-0

Which is, I think, very common. (I guess you can have an index page in the folder). If that's not possible in Svelte (I don't think so) we can use:

https://torrust.com/blog https://torrust.com/blog-post/released-v3-0-0

I think that the route for blog and the route for individual posts prevent that, but I can change article to blog-post so it appears as https://torrust.com/blog-post/released-v3-0-0, as you suggested.

josecelano commented 2 weeks ago

https://torrust.com/blog https://torrust.com/blog/released-v3-0-0

HI @grmbyrn I found this example:

https://github.com/AdrienLF/svelte-blog

Which uses this format: