Skip to content
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

Fixes #794 - add show_recent_posts parameter to stop showing recent posts on index #795

Merged

Conversation

Klaas-
Copy link
Contributor

@Klaas- Klaas- commented Nov 17, 2024

Closes #794

You can no longer set recent_posts_number = 0 because in current hugo versions {{ $n_posts := $.Param "recent_posts_number" | default 3 }} will default to three if recent_posts_number is 0. This used to work a couple of versions back, I am assuming this is not a regression but rather wanted behavior in hugo -- so I introduce a new parameter (boolean) show_recent_posts to enable(default) or disable recent posts on index.

Copy link

netlify bot commented Nov 17, 2024

Deploy Preview for ananke-theme ready!

Name Link
🔨 Latest commit 879c88f
🔍 Latest deploy log https://app.netlify.com/sites/ananke-theme/deploys/674c78cb809b0800080ec07d
😎 Deploy Preview https://deploy-preview-795--ananke-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

layouts/index.html Outdated Show resolved Hide resolved
@davidsneighbour davidsneighbour merged commit b06949e into theNewDynamic:main Dec 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: ananke will always show recent posts on index
2 participants