Skip to content

Change URL for news items? #47

Open
@dwhswenson

Description

@dwhswenson

Right now, our URLs for news items include the "categories" (which we're actually treating as unordered tags). Example, a URL with categories lomap and release gives:

https://openfree.energy/lomap/release/2022/03/15/lomap-conda-forge/

Since we don't have a defined ordering on these, this could just as easily have been release/lomap/2022/03/15/lomap-conda-forge/. I think we should change this. Two ways to change (both about equally easy):

  1. Distinguish between actual categories and tags. Each post must have 1 category. Possible categories include:

    • releases
    • hirings
    • presentations
    • science
    • misc

    We aren't locked into any set; we can always add more categories later as needed. This could be nice from a URL standpoint because we could have openfree.energy/releases/ as an index with all releases, and then within it openfree.energy/releases/2022/03/15/lomap-conda-forge/ .

  2. Completely remove these labels from the URL. In this case, I'd probably want to add news/ as a level, and the URL would be openfree.energy/news/2022/03/15/lomap-conda-forge/

Either solution should be easy to implement (probably took me longer to write this issue).

Note that changing the URLs will break any existing links to them... but I highly doubt we have many incoming links to our 2 little news items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions