-
I would like to publish my hyas site by just copying the output of During build, all the images from pages (leaf bundle) get processed by hyas/images into the root folder of |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 11 replies
-
I can't reproduce your issue /I don't see this behavior with e.g. Doks v1:
Deploy preview: https://v1--doks.netlify.app/ Do you have a repo you could share? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the prompt reply. I created this clean repo for easy reproducibility. Essentially, it is a new hyas project (created today with |
Beta Was this translation helpful? Give feedback.
-
Thank you, that fixes the problem! Btw. I noted that this latest version contains quite some changes wrt. to the version I started with some months ago (removal of RSSlink & Site.Params.footer & lazyimg, new bs themes folder, renaming of hugo.yml). Hoping to see a stable documentation soon! |
Beta Was this translation helpful? Give feedback.
-
Hi again! I observed a similar problem as the above: some bootstrap code is missing in the build. Easy replicable case: Define a custom CSS class in |
Beta Was this translation helpful? Give feedback.
-
👉 Most likely, you'll need to update your Do you have a repo you could share? I can't reproduce your issue: I've added to .bg-yellowgreen {
background-color: yellowgreen;
} And, to [..]
<body class="{{ delimit (.Scratch.Get "class") " " }} bg-yellowgreen">
[..] Next ran: pnpm build && pnpm preview As expected: |
Beta Was this translation helpful? Give feedback.
-
Kindly take a look at this repo . In |
Beta Was this translation helpful? Give feedback.
-
Sorry, but I have to come back to the issue with the images. I was so happy that the images are now in place, that I did not notice that the image are now not displayed! So the blog markdown content (in the repo above) includes an image
But nothing will be displayed. Did I miss anything? In the previous Hyas version, this worked out-of-the-box. Also, it would be great to know how to use the image partial with a concrete image in the template. This example did not work for me. |
Beta Was this translation helpful? Give feedback.
-
In formats: [webp] # [original, webp] (default) Reset to defaults (the original format is always needed) and it works. This is how to use the picture (or
Documentation is in the making. Until then see Usage Examples (Quick Start) |
Beta Was this translation helpful? Give feedback.
-
I noticed that when I use images this way, they look blurry. That is, on initial page loading it will display a low resolution image, and it will not update it with a higher resolution image (I have a retina display). Interestingly, it will update and display the high resolution image when I inspect the page. It is the same for Firefox and Chrome browsers. Is this to be expected? |
Beta Was this translation helpful? Give feedback.
-
Hi! I will close this as the main question of the image location is solved. If an explanation to the image loading happens to surface, I'd be happy to be informed. Thank you again for the quick help. |
Beta Was this translation helpful? Give feedback.
Thanks for your input! Please use the new create-hyas (v1.0.3):
Or, in one command with options: