Skip to content

Add unique id for post #45

@jwillmer

Description

@jwillmer

The idea is to set a unique id in the YAML header that is used in the post URL. If you change the title of the post later it does not matter since we only care about the post id. This is search engine and user friendly and an improvement to using redirects if you change the post title.

Example Header:

layout:         post
title:          "This is my title"
id:             5465456
date:           2016-04-06 00:40:00 +0300
author:         jwillmer

Example URL's:

https://site/blog/id/title
https://site/blog/5465456/This-is-my-title
https://site/blog/5465456/This-is-a-different-title-to-the-same-post

Permalink in _config.yml:

permalink:        /blog/:id/:title

Everything after id will be ignored for redirecting to your post.

On-Hold since we need Jekyll and GitHub to support this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions