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
Only two of them used by <link rel="preload" href="" /> changed to related URLS, but another two used by background-image: url() are still abstract URLs.
And it's very tricky that they are using the same code to output the image url: {{ $promo_image_big.RelPermalink }} or {{ $promo_image_small.RelPermalink }}. Why the result are different?
In my case, I use a subdirectory as baseURL like baseUrl="https://skyao.io/learning-hugo", so I want to set relativeURLs to true.
Please help me to fix this, or how to work around.
The text was updated successfully, but these errors were encountered:
In file
layouts/shortcodes/blocks/cover.html
of docsy:By default, when relativeURLs is false, the result will be :
All the four URLs above are abstract URL start with "/"。
But when I set relativeURLs to true:
Only two of them used by
<link rel="preload" href="" />
changed to related URLS, but another two used bybackground-image: url()
are still abstract URLs.And it's very tricky that they are using the same code to output the image url:
{{ $promo_image_big.RelPermalink }}
or{{ $promo_image_small.RelPermalink }}
. Why the result are different?In my case, I use a subdirectory as baseURL like
baseUrl="https://skyao.io/learning-hugo"
, so I want to set relativeURLs to true.Please help me to fix this, or how to work around.
The text was updated successfully, but these errors were encountered: