PSLmodels / blog

PSL blog using Fastpages.
http://blog.pslmodels.org
2 stars 6 forks source link

Omit categories from post URLs #17

Closed MaxGhenis closed 3 years ago

MaxGhenis commented 3 years ago

We're currently using the default URL settings, which add the category(ies) to the URL, e.g. http://blog.pslmodels.org/demo-days/2020/11/23/tax-cruncher.html.

This isn't great with one category, but it's especially bad with multiple categories, as @jdebacker added to the CCC post in #16. That URL would read http://blog.pslmodels.org/demo-days/cost-of-capital-calculator/business-taxation/corporate-income-tax/2020/12/02/ccc.html.

Per this Fastpages forum post, URL structures can be changed globally via Jekyll instructions. For example, URLs could read http://blog.pslmodels.org/2020/12/02/ccc.html, or even something like http://blog.pslmodels.org/ccc. This will break links from past posts, but I think we're early enough that it'd be worth doing now. WDYT @jdebacker @MattHJensen @hdoupe?

hdoupe commented 3 years ago

@MaxGhenis Let's drop the tags from the URL path.

In addition to making the URL clunky, we may want to rename a category or come up with a new category that a previous post would fall into.

jdebacker commented 3 years ago

Yes - I agree with @hdoupe Thanks for looking into this @MaxGhenis

MaxGhenis commented 3 years ago

Sounds good. Looking at some guides I think we should also remove the date from the URL, and instead make the URL text descriptive, e.g. blog.pslmodels.org/demo-day-3-ccc. What do you think?

hdoupe commented 3 years ago

@MaxGhenis I'm OK with removing the dates. They are in the post after all.

Also, fwiw I just picked three tech blogs at random and got three different url structures:

So, I don't think we can go wrong here (well except for having multiple categories in a URL).

jdebacker commented 3 years ago

So, I don't think we can go wrong here (well except for having multiple categories in a URL).

Agree! Don't mind dates in URL, but it needs to be short and easy to make it unique (either date or demo day number should help with that).