Goa theme add cover image to blog posts

Does anyone here have experience with the Goa theme?

I want to add cover images to my blog posts as thumbnails. I have looked at li.html under /partials and I cant see it having a varible for it.

Any info would be appreciated. :slight_smile:

I do something like this…
In the frontmatter for the page I specify which image should be used for the thumbnail (I use it also for opengraph)
image: myimage.jpg
I put the myimage.jpg and index.md in the same page bundle.

Then add to the listing (in your case the li.html)

{{ if .Params.image }}
{{ $src := .Resources.GetMatch .Params.image }}
// show the image in some way //
{{ <img src="{{- (.Fill "160x120").RelPermalink }}"  width="160" height="120">}}
{{ end }}

I think you might be able to use “with” instead of “if” in this case
(I have an “else” fallback to use the first image if it hadn’t been set)

Thank you. :slight_smile:
I will try it tomorrow and let you know how it goes.