Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Enable twitter cards for blog posts #163

Closed
flicstar opened this issue May 5, 2022 · 3 comments
Closed

Enable twitter cards for blog posts #163

flicstar opened this issue May 5, 2022 · 3 comments

Comments

@flicstar
Copy link
Contributor

flicstar commented May 5, 2022

Hey @zivbk1 @bwklein want to watch another episode? https://www.loom.com/share/fcd5bfd1272243e587bb5bddf87cd45b

Just creating this issue for us to get twitter card images working. Yay.

@flicstar
Copy link
Contributor Author

flicstar commented May 5, 2022

From Bryan:

The code doesn't allow for a single 'image' field to work.
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html
So, I will see if there is a good approach that we can implement as a way of adding some array of images in the frontmatter UI.

@bwklein
Copy link
Member

bwklein commented May 5, 2022

In the meantime, you could just manually add the images list into the frontmatter.

Something like this...

images:
- /uploads/blog/post-cover.jpg

It won't be supported in the Frontmatter UI until I extend the data type, but there is nothing keeping you from adding additional fields to the front matter data manually.

@flicstar

@bwklein
Copy link
Member

bwklein commented May 11, 2022

Implemented #169

@bwklein bwklein closed this as completed May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants