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

Implement looping over mainSections #445

Merged
merged 3 commits into from
Aug 6, 2021

Conversation

414n
Copy link

@414n 414n commented Jul 15, 2020

Closes #444

@kakawait kakawait added this to the 0.5.0-BETA milestone Aug 6, 2021
@kakawait
Copy link
Owner

kakawait commented Aug 6, 2021

I'll like to add on next release but need to fallback on previous hardcoded posts if setting is missing

@kakawait kakawait added the enhancement New feature or request label Aug 6, 2021
@kakawait
Copy link
Owner

kakawait commented Aug 6, 2021

I'll like to add on next release but need to fallback on previous hardcoded posts if setting is missing

See doc https://gohugo.io/functions/where/#mainsections

If the user has not set this config parameter in their site config, it will default to the section with the most pages.

@kakawait kakawait marked this pull request as ready for review August 6, 2021 11:58
@kakawait kakawait merged commit 02ff21b into kakawait:develop Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants