Skip to content

Migrate permalink string references to a constant #1820

@hswolff

Description

@hswolff

Right now the two permalink formats, /:slug/ and /:year/:month/:day/:slug/, are referenced throughout the code base as a string.

This is fragile.

We should create a constants file and define these strings on that object and only reference that object through the code base.

(I believe this also applies to other strings that should be variables.)

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