frjo / hugo-theme-zen

A fast and clean Hugo base theme with css-grid and Hugo pipes support.
https://zen-demo.xdeb.org/
GNU General Public License v2.0
264 stars 75 forks source link

Cover image for posts / pages #69

Closed arky closed 1 year ago

arky commented 1 year ago

Is there a way to add cover image for page or post. Is this currently supported by hugo-theme-zen by default.

Would like to display the image in both listing pages and also single post pages.

frjo commented 1 year ago

There is no feature for that in the Zen theme. I only add base functions that I need on more or less every site I build.

I suggest you copy theme/zen/layouts/_default/single.html and theme/zen/layouts/_default/summary.html to your root layouts/_default/ and modify them to support cover images.

The Zen theme is not really ment to be used as is. I have created it to act as a solid base for every Hugo site I build for myself and for customers.

arky commented 1 year ago

Thank you @frjo . Closing this issue as resolved.