-
Hi, Not sure if I am using wowchemy wrongly, I am really new to both hugo and wowchemy. Today, when I started
After some searching I found this issue: gohugoio/hugo#7242
But then I realised that my hero background image was displayed too big. Uncommenting the
Am I using things wrongly? Tom |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looking at line 51 in the widget_page.html file (link: https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/wowchemy/layouts/partials/widget_page.html#L51), that controls the background properties of the home page or other widget pages, it's clear that the image size is set by the I'm not using the hero widget myself, but the hero.html widget partial is referring to a |
Beta Was this translation helpful? Give feedback.
Looking at line 51 in the widget_page.html file (link: https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/wowchemy/layouts/partials/widget_page.html#L51), that controls the background properties of the home page or other widget pages, it's clear that the image size is set by the
background-size
parameter. Now referring to this page (https://www.w3schools.com/csSref/css3_pr_background-size.asp), the default value ofbackground-size
isauto
, which translates toactual
in wowchemy. So it seems that the default value is notcover
!I'm not using the hero widget myself, but the hero.html widget partial is referring to a
hero-media
. Maybe it's better to that, instead of the background…