mtn / cocoa-eh-hugo-theme

A enhanced version of Cocoa. Clean, fast, and responsive theme with cool typography.
https://themes.gohugo.io/theme/cocoa-eh-hugo-theme/
MIT License
224 stars 111 forks source link

Section headings #116

Closed mbellitti closed 5 years ago

mbellitti commented 5 years ago

I'm trying to create a section that contains a list of posts and an header. I followed the instructions in the wiki (about Sections) but the header file keeps showing up as an article.

For example, I created a section books that contains the file books.md, and now I see this image instead of the content of books.md as the section heading.

mtn commented 5 years ago

Hm, I believe the wiki needs to be updated. I'll double check as soon as I get a chance, update it if necessary, and let you know.

mtn commented 5 years ago

Okay, I thought I remembered it working this way, but looking at the implementation and back in history I'm not sure how it ever worked that way. It's easy to implement though, and I don't think there's support for adding annotations except on the main home page, so I'll add it.

mtn commented 5 years ago

@mbellitti I implemented this on the dev branch. Could you let me know if you have any thoughts?

One thing that differs from the standard home page description is I put the description after the section heading, since that seemed better.

Screen Shot 2019-04-06 at 3 28 23 PM

That content comes form content/books/books.md.