Skip to content

What front matter property or mkdocs config value will let me control the url? #5161

Answered by squidfunk
sheldonhull asked this question in Q&A
Discussion options

You must be logged in to vote

This is not natively supported by MkDocs. FWIW, the blog plugin allows for explicitly setting slug in front matter, but I don't know of a plugin that does the same for regular documents. Note that for moving content around, the mkdocs-redirects plugin can be used to set up proper redirects for stale URLs. You might also be able to implement this with a few lines of Python as part of a hook.

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
10 replies
@sheldonhull
Comment options

@squidfunk
Comment options

@sheldonhull
Comment options

@squidfunk
Comment options

@bitsondatadev
Comment options

Answer selected by sheldonhull
Comment options

You must be logged in to vote
6 replies
@kamilkrzyskow
Comment options

@shenweiyan
Comment options

@shenweiyan
Comment options

@squidfunk
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
1 reply
@squidfunk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants