Skip to content

Improve the permalink / mappingKey system #49

Description

@BuckyBuck135

To make the blog work with i18n features, I had to jump through a few hoops. One of the side effects were the addition of permalink and mappingKey fields for the blog entries.

Permalink allows for localized slugs (they get computed at build time), and mappingKey allows the LanguageSwitcher to find its translated counterpart.

It works, but it adds friction to the blog editing experience.

One constraint: even with the permalink field, Decap will always create identical file names, based on the default locale. No way around that.

Objectives: I think the permalink field is unavoidable, but the mappingKey one can probably be derived automatically from the title or the filename somehow. If we can avoid having it in the Decap admin UI, while preserving the functionality, that'd be great.

Open for PRs!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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