Replies: 4 comments 16 replies
-
Unfortunately we don't have any query engine so that you can easily inject any kind of data to any page A workaround is to extend the blog plugin (#4138 (comment)) In the And then you can import that file on your homepage: import blogPostHomePage from '@site/.docusaurus/my-blog-homepage-data.json |
Beta Was this translation helpful? Give feedback.
-
I would also like to display recent blog posts on the homepage. Is there an easier way to achieve this now? |
Beta Was this translation helpful? Give feedback.
-
Please find here a complete example of displaying recent blog posts on your homepage: cc @gouku @sergefdrv |
Beta Was this translation helpful? Give feedback.
-
Why is it so difficult to do it? Is there not a way to have a global hook with the last X blog posts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get the latest blog post or docs programmatically? I'd like to show something like "News from our blog" or "Recent updated docs" somewhere on the homepage.
Example in Wordpress.org footer:
Beta Was this translation helpful? Give feedback.
All reactions