CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
5.06k stars 1.66k forks source link

Section's content is not rendered. #918

Closed thugcee closed 7 months ago

thugcee commented 11 months ago

What happened?

Sometimes section needs some reach text introduction. Currently section content is ignored and only .Params.description is displayed.

Hugo version

0.114.1

Theme version

3.21.0

What browsers are you seeing the problem on?

Firefox

More information about the browser

No response

Relevant log output

No response

Link to Minimal Reproducible Example

https://github.com/thugcee/jkazs-site/blob/master/content/page/sprawy-klubowe/_index.md

CaiJimmy commented 7 months ago

Yes, that's the expected behavior. I wanted the description of a section to be short (1-2 lines) and did not consider the possibility of longer content.

I'd say I'll leave it as it is for now, since it's not something that's widely used. But here's what you need to change to show the full content:

https://github.com/CaiJimmy/hugo-theme-stack/blob/609d43b088c3a8133170466171bcbc3585c3faed/layouts/_default/list.html#L15C1-L17C26

Replace it with {{ .Content }}.

Hope this helps and sorry for the late reply.