diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 014d556..1cc1d0b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -61,6 +61,9 @@ enableEmoji = true # The sections of the home page alternate styling. Mark invert as true to swap the styling of the sections invertSectionColors = false + # Options used for automatic image generation. see: https://gohugo.io/content-management/image-processing/ + image_options = "webp q90 lanczos photo" + [params.footer] # Show contact icons for email/phone (if specified) in the footer of the page showContactIcons = false diff --git a/layouts/_default/index.html b/layouts/_default/index.html index be84f77..499ad1e 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -7,20 +7,45 @@ {{ if not .Params.header_use_video }} -{{ with $img := resources.Get .Params.header_image }} - -{{ end }} + {{ with $img := resources.Get .Params.header_image }} + {{ $image_options := $.Site.Params.image_options | default "webp q90 lanczos photo" -}} + + {{ end }}