Docusaurus: Support permalinks configured in head matter

Created on 29 Sep 2017  路  3Comments  路  Source: facebook/docusaurus

Feature Request:

Allow defining a permalink in post and doc markdown frontmatter.

advanced feature

Most helpful comment

Hi @steveklabnik. Yes, like allowing the actual link that is navigated to be different than our default.

e.g.,

permalink: /my/custom/link.html

All 3 comments

What does "permalink" mean in this context? If it's setting the URL that a page is configured at, like I described over here, then a huge 馃憤 from me.

Hi @steveklabnik. Yes, like allowing the actual link that is navigated to be different than our default.

e.g.,

permalink: /my/custom/link.html

Implemented in v2

Example

---
id: permalink
title: Permalink
permalink: :baseUrl/:docsUrl/:langPart/:versionPart/my/custom/link
---

Lorem ipsum

https://github.com/facebook/Docusaurus/blob/5d60739f7c9263f3f8142f27c85b0180eeb1f19f/v2/lib/load/docs/metadata.js#L117-L134

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MoogyG picture MoogyG  路  3Comments

nebrelbug picture nebrelbug  路  3Comments

sebqq picture sebqq  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments

rickyvetter picture rickyvetter  路  3Comments