Skip to content

Multiple Blogs on one index page #8267

Closed Answered by kamilkrzyskow
kenny-chua asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kenny-chua,
each instance of the blog plugin is isolated and unaware of each other, there is no built-in functionality to merge them all into one page.
However, if you'd like you could do some Python hacking shenanigans and create a hook or plugin to aggregate the information from multiple blogs and then either add elements in the Markdown using the hook or define a Jinja2 template with the aggregated data.

I did something similar with the latest_blog_posts plugin/hook over at mkdocs-nype, which you could reference to develop your own variant. You would have to do so, since the reference logic expects to be placed in index.md and you want to move it to projects/index.md

There also oth…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kenny-chua
Comment options

You must be logged in to vote
0 replies
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