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

Remove Section mention from single/page #531

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

regisphilibert
Copy link
Member

@regisphilibert regisphilibert commented Mar 21, 2022

Fixes #522

Came to my attention that the section would never be useful. Pages are most often at the root of the content directory /content/about.md, so the section would be the homepage.

If the page sits in about/staff.md then the default type would be about and not page thus not picking up the single/page.md.

The current implementation will blindly print the name of the directory in which belong the page which makes it impossible to localize.

I'll remove as I doubt many user will see the difference.

@netlify
Copy link

netlify bot commented Mar 21, 2022

✅ Deploy Preview for gohugo-ananke-theme-demo canceled.

🔨 Explore the source changes: 8ace5e1

🔍 Inspect the deploy log: https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/6238b772fc7121000997ade5

@regisphilibert regisphilibert merged commit c3f177e into master Mar 21, 2022
tstephen pushed a commit to tstephen/gohugo-theme-ananke that referenced this pull request Jun 9, 2022
@davidsneighbour davidsneighbour deleted the 522-page-section-title branch October 21, 2024 00:34
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.

Single of type 'page' always display PAGE as section
1 participant