google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.63k stars 905 forks source link

Display content of blog index or blog-section index #2073

Open froboy opened 3 months ago

froboy commented 3 months ago

Fixes #1787.

I needed this for my project and saw the issue open. Currently Blog Section pages don't have a h1 either, so this adds the title of the section as well.

froboy commented 3 months ago

@chalin I took a quick stab at this. The content and title will be shown above Blog Sections.

From our site, as an example:

SCR-20240820-poxm

froboy commented 3 months ago

Not quite... this displays the content on section pages, but duplicates it on blog items. Working on a fix.

froboy commented 3 months ago

{{ if .IsSection }} fixed that up.