Replies: 3 comments
-
Check the theme file layouts/partials/recent-articles.html. For a quick and dirty solution you can override the value there. For a better solution (for which I do not have the time at the moment), you could provide your own partial which reads a parameter and uses that here. |
Beta Was this translation helpful? Give feedback.
-
I found the variable in layouts/partials/recent-articles.html in the repository !
I believe I should replace 5 by 10 or 15 in this line :
But I use Congo as a module : I don't know where to modify this file in my local folder because it's empty. I don't know well how Hugo works and Go (if it's Go) is unknown to me. I don't know how to create a partial. I will see the documentation. EDIT : I got it. I created /layout/partials/recent-articles.html and copied these lines :
Now I have the 15 last articles and I am happy, thank you. |
Beta Was this translation helpful? Give feedback.
-
Thank you maijau. With your help I searched how to do this. I made a PR : #411 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to know of it's possible to change the number of recent articles. It's set to 5 and I cannot find how to increase it to 15 for example. I hope it's not an obvious setting it didn't find... Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions