theNewDynamic / gohugo-theme-ananke

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

Page title is output twice when featured image is used #578

Closed MxGeMo closed 1 year ago

MxGeMo commented 1 year ago

When I use featured image, then the page title is output twice. 2022-10-06_08h02_21

The reason is a different handling in \themes\ananke\layouts\partials\page-header.html when featured image is defined: 2022-10-06_07h44_37

I could suppress this double page title when I add an own single.html in \layouts\page\single.html 2022-10-06_07h51_57 but so I do not participate on future updates of the official theme for the single.html.

But would it not better to make this adjustments in \themes\ananke\layouts\page\single.html

regisphilibert commented 1 year ago

Hi @MxGeMo there is a param called omit_header_text this ensures the hero image does not have any text in it. With this, no more duplication, only the title closest to the content will appear.

Now, without omit_header_text, the title will always appear twice this is by design. But after #585, will make sure there is only one H1.