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

Post tile uses section name instead of section title #519

Closed metbril closed 2 years ago

metbril commented 2 years ago

The tiles with posts show the section name in the top left corner:

Schermafbeelding 2022-02-20 om 09 54 02

I have a translated site, and everywhere else, the title 'Berichten' I have set in the posts/_index.md file is used:

---
title: Berichten
url: berichten
menu: 
  main:
    weight: 1
---

See screenshots:

Schermafbeelding 2022-02-20 om 09 53 51 Schermafbeelding 2022-02-20 om 09 53 45 Schermafbeelding 2022-02-20 om 09 54 12
metbril commented 2 years ago

This is how it's currently in summary.html:

https://github.com/theNewDynamic/gohugo-theme-ananke/blob/8fdfd205f9b4fd2f52eac9dfd2da8e11bea2015e/layouts/_default/summary.html#L3

This is how it looks like in the single.html, and should be:

https://github.com/theNewDynamic/gohugo-theme-ananke/blob/8fdfd205f9b4fd2f52eac9dfd2da8e11bea2015e/layouts/_default/single.html#L10-L16

But perhaps it even should be .FirstSection instead of .CurrentSection.