Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Hugo resize the Post Preview Image in Overviews #333

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sethiele
Copy link
Contributor

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.

@ibnunowshad
Copy link

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```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants