theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.13k stars 1.14k forks source link

Remove Section mention from single/page #531

Closed regisphilibert closed 2 years ago

regisphilibert commented 2 years ago

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[bot] commented 2 years ago

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

🔨 Explore the source changes: 8ace5e1a7349221b747f7af32e5f55135053ecf2

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