diff --git a/archetypes/blog/index.md b/archetypes/blog/index.md
index 5c06aa9..feb552f 100644
--- a/archetypes/blog/index.md
+++ b/archetypes/blog/index.md
@@ -12,16 +12,10 @@ tags = [
"awesome",
]
-# this image will be shown for the article in list pages
+# this will be shown for the article in list pages
+# currently it can be either an image or video
[[resources]]
name = "feature"
src = "something.webp"
title = "Some image (image format can be anything; webp is just an example)"
-
-# same as above, but a video. only one will be shown; image takes
-# priority over video
-[[resources]]
-name = "feature-video"
-src = "whatever.webm"
-title = "Whatever video (video format can be anything; webm is just an example)"
+++
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index dfe2ccd..0346a5f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -69,11 +69,11 @@
{{ end }}
{{ with .Resources.GetMatch "feature" }}
+ {{ if eq .MediaType.MainType "image" }}
- {{ else }}
- {{ with .Resources.GetMatch "feature-video" }}
+ {{ else if eq .MediaType.MainType "video" }}