beautifulhugo icon indicating copy to clipboard operation
beautifulhugo copied to clipboard

Let Hugo resize the Post Preview Image in Overviews

Open sethiele opened this issue 5 years ago • 1 comments

For a smaller Post Preview Image I changed the way of adding it to the post_overwiew. It use the Hugo Resize function to fit it to the max size of image withe. Therefore the Image have to be stored in the post folder with *_header.{png,jpg}as name.

The old way with the page variable will also work, but without resizing.

sethiele avatar Jan 14 '20 14:01 sethiele

I am getting below error in my Gitlab ci

Checking out 00c6a670 as master...

Updating/initializing submodules recursively...
Executing "step_script" stage of the job script
$ hugo
Total in 28 ms
Error: add site dependencies: load resources: loading templates: "/builds/website/www-example-com/layouts/partials/post_preview.html:49:1": parse failed: template: partials/post_preview.html:49: unexpected EOF
ERROR: Job failed: exit code 1```

ibnunowshad avatar Aug 21 '20 17:08 ibnunowshad