-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Parameter post_thumbnail_default not working #712
Comments
Hi, what is the full path of the parameter? It should be site/config/_default/params.yml Line 32 in 5758866
https://github.com/hbstack/site/blob/main/assets/images/thumbnail.jpg |
Hi, I've used this example as a reference with the same image from repository. I've tried tried several ways, but I couldn't find out why the image wasn't displayed (which warning message only appears when it is found). Here is an excerpt from my params.yaml: hb:
blog:
full_width: false # when true, the blog layout takes full width.
sidebar:
profile:
# title: Profile title other than site title.
# description: Profile description other than site description.
# socials:
posts:
recent_count: 5 # the number of recent posts.
featured_count: 5 # the number of featured posts.
# style: pills
taxonomies:
count: true # whether to show the number of posts associated to the item.
limit: 10 # the maximum number of the item.
style: underline
paginate: 12 # paginate.
post_thumbnail_placeholder: "" # the text of thumbnail placeholder, default to site title.
post_thumbnail: true # whether to show the thumbnails.
post_thumbnail_default: images/thumbnail.jpg
post_date_format: :date_long # see https://gohugo.io/functions/dateformat/#datetime-formatting-layouts.
home: # homepage settings.
# taxonomies: false # remove the taxonomies stat from the homepage.
featured_posts: 5 # the number of the featured posts.
main_sections: # leave it empty to include all regular pages.
- docs
- blog
- news go.mod:
hugo console log:
|
I think it's not the parameter related, I guess you're using |
I don't know where I even renamed the Could it have something to do with the pt-br language? |
Do you have a public repo for reproducing? I couldn't reeproduce it, or you can invite me to your private repo, and remove me later.
No. |
One more clue is that you can search your content with the |
Thanks for your help! The problem is actually in the baseURL: https://group.gitpages.corp # works fine
baseURL: https://group.gitpages.corp/mysite # does not work So removing |
If this is a bug, it might help you to know that this other section that uses the same directory to read a image file works normally with any seo:
favicons: # see https://hugomods.com/en/docs/seo/#favicons-module
icon: images/logo.png # use logo as favicon. |
Seems a bug, will take a close look into it later. |
Thanks so much! Confirmed it's now working with github.com/hbstack/blog@v0.22.2. |
My pleasure. |
site/content/modules/blog/overview/index.md
Line 35 in 5758866
When
post_thumbnail_default: images/thumbnail.jpg
orpost_thumbnail_default: /images/thumbnail.jpg
is set in params.yaml, in both cases the image is found atassets/images/
directory but it is not displayed, showing the console warning:If the image is not found, then there are no errors nor warnings. But image is not displayed neither ways.
How can I make it work? Maybe remove
height=360px
parameter from somewhere?Please tell me if you need more information for debugging.
The text was updated successfully, but these errors were encountered: