Skip to content

[RFC] website_blog_permalink: Canonical Blog URIs #330

@lasley

Description

@lasley

This module will allow for the configuration of canonical blog URIs, similar to the way that Wordpress does.

It will leverage website_seo_redirection to redirect the pages. An option will be provided for the permalinks to either move the page or simply redirect. The default will be to move the page (website.seo.redirection.relocate_controller = True)

It will allow the following options for URI schemas:

  • Slug (default) - /blog/{{ slug }}
  • Day & Slug - /blog/{{ year }}/{{ month }}/{{ day }}/{{ slug }}
  • Month & Slug - /blog/{{ year }}/{{ month }}/{{ slug }}
  • Year & Slug - /blog/{{ year }}/{{ slug }}
  • Custom - string

The custom structure will allow for string interpolation, providing the following variables:

  • year
  • month
  • day
  • slug

Does anyone know of any pre-existing code or strategy we can base on for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions