You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working with this theme, I noticed that it currently does not support references to page resources for a number of front-matter parameters (coverimage, thumbnailimage, gallery etc.), as the relevant templates actually expect a relative URL to the static directory or an absolute one.
This results in broken images/pages when trying to reference page resources in a page.
Expected behavior
Theme should support loading page resources while possibly keeping the actual behavior as a fallback.
Steps to reproduce the behavior
create a new page bundle under the post section, e.g. post/a_test_post/index.md
put a test image inside the bundle, e.g. post/a_test_post/image.jpg
try to use it via a front matter parameter like coverimage, e.g. coverimage: image.jpg
render the site with hugo;
when loading the test page, the image is not correctly loaded, because the incorrect image URL was generated, e.g. http://BASEURL/image.jpg instead of http://BASEURL/post/a_test_post/image.jpg
I have already modified some templates to add this feature. Will create a PR soon
The text was updated successfully, but these errors were encountered:
Configuration
Actual behavior
While working with this theme, I noticed that it currently does not support references to page resources for a number of front-matter parameters (
coverimage
,thumbnailimage
,gallery
etc.), as the relevant templates actually expect a relative URL to thestatic
directory or an absolute one.This results in broken images/pages when trying to reference page resources in a page.
Expected behavior
Theme should support loading page resources while possibly keeping the actual behavior as a fallback.
Steps to reproduce the behavior
post
section, e.g.post/a_test_post/index.md
post/a_test_post/image.jpg
coverimage
, e.g.coverimage: image.jpg
http://BASEURL/image.jpg
instead ofhttp://BASEURL/post/a_test_post/image.jpg
I have already modified some templates to add this feature. Will create a PR soon
The text was updated successfully, but these errors were encountered: