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
The thumbnail is just the baseURL plus the thumbnail string, which is wrong when the image isn't in /static but in a page bundle. I fixed it (probably hacky) by changing the related partial. I don't know enough about Hugo to make it more generic, but maybe it's helpful to get a solution.
{{ $related := .Site.RegularPages.Related . | first 6 }}
{{ with $related }}
<section class="p-related">
<h3>See Also</h3>
<ul id="slider" class="p-related__list">
{{ range . }}
{{ $page := . }}
<li class="p-related__item js-related__item">
<a href="{{ .RelPermalink }}"
{{ with .Params.thumbnail }}
style="background-image: url({{ $page.Permalink }}{{ . }});"
{{ end }}>
<span>{{ .Title }}</span>
</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}
The text was updated successfully, but these errors were encountered:
The thumbnail is just the baseURL plus the thumbnail string, which is wrong when the image isn't in
/static
but in a page bundle. I fixed it (probably hacky) by changing the related partial. I don't know enough about Hugo to make it more generic, but maybe it's helpful to get a solution.The text was updated successfully, but these errors were encountered: