Multiple Blogs on one index page #8267
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @kenny-chua, 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 other plugins that extend the functionality of the blog plugin, so consider having a look ✌️ References: |
Beta Was this translation helpful? Give feedback.
-
Thank you @kamilkrzyskow Good information to know! I'll take a look at your example. Appreciate the help! |
Beta Was this translation helpful? Give feedback.
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…