-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Get recent posts #459
Comments
That's a good idea to write a helper plugin |
You can take a look at the default theme: However, I think it would be great to have a helper plugin. |
I thought it would be great too, so I made one: https://npmjs.org/package/hexo-helper-recent_posts In your theme : Default options :
|
Thank you @floriancargoet . Is there a way to use this in a page like About? |
In hexo-theme-chenall, this feature is implemented.
|
Is it possible to get recent 5 or 10 posts from a page (say /about) as like <%recent_posts(10)%> ? I have searched through the document and couldn't find an answer.
thank you,
Joseph
The text was updated successfully, but these errors were encountered: