Skip to content

Issue with blog category index for a dedicated blog #8345

Answered by kamilkrzyskow
jacobprezant asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jacobprezant,
the screenshot of the file structure in the docs and the screenshot of your file structure don't match.

https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#custom-index-pages

The order is as follows:

  • Blog directory root
  • Folder called category matching the URL format
  • Markdown file named after a category name, matching the URL format

You're using the blog at the the docs root blog_dir: ., therefore you can skip the blog root.
Your URL is this http://localhost:8000/category/reading-list/
So add category inside of your docs directory
And add reading-list.md file inside of the docs/category.

If that doesn't work make sure you have the correct version of mk…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jacobprezant
Comment options

@jacobprezant
Comment options

@kamilkrzyskow
Comment options

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