Skip to content

Frontmatter-based redirects?Β #53

@Andre601

Description

@Andre601

Personally, I feel like it could be a nice feature to allow defining redirects in a file's yaml frontmatter.

As an example:

---
title: Title
description: Some page.

redirects:
  - old/location/index.md
---

# Title

Content

The benefits I see:

  • More organized. It's clear what old locations redirect to this page
  • Easier to edit. Move file, edit it vs. Move file, go to mkdocs.yml and edit it.

It's just a random idea that came to mind.

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