Closed sespinoza-dev closed 1 month ago
I fix it by creating a new file in layouts/posts/single.html
copying the content in themes/cactus/layouts/posts/single.html
and removing the lines:
{{ with .Resources.ByType "image" }}
<div class="article-gallery">
{{ range $index, $value := . }}
<a class="gallery-item" href="{{ .RelPermalink }}" rel="gallery_{{ $index }}">
<img src="{{ .RelPermalink }}" itemprop="image" />
</a>
{{ end }}
</div>
{{ end }}
Summary
When adding images to your post, you'll see it duplicated both inline (where you want it) and at the start of the post.
How to reproduce
hugo new posts/test-article/index.md
and fill in the content:This is a test text
This is an image