I’m having a problem with Twitter Cards only using Summary card.
According to the docs:
If
images
aren’t specified in the page front-matter, then hugo searches for image page resources withfeature
,cover
, orthumbnail
in their name. If no image resources with those names are found, the images defined in the site config are used instead. If no images are found at all, then an image-less Twittersummary
card is used instead ofsummary_large_image
.
My front matter is as follows:
---
title: How to schedule posts in Hugo
description: In this post I will show you how you can automatically schedule future posts with Hugo and Netlify.
author: remy
date: 2021-10-15T06:00:00-04:00
feature: /images/demo.jpg
categories:
- Hugo
- Web Development
tags:
- Hugo
- HTML
- Scheduling
- Netlify
- CI/CD
---
I’m using Feature:
for the featured image, yet the twitter card isn’t picking it up.
Do I need to change it to “Images
” instead?
I’m confused because the docs say that feature
is valid and should work, and yet…
Thank you in advance. I’m sure I’m missing something very obvious!