digitalcraftsman / hugo-cactus-theme

Port of Nick Balestra's Cactus theme to Hugo.
MIT License
198 stars 111 forks source link

Open Graph Tags #19

Closed qwo closed 7 years ago

qwo commented 7 years ago

It would be nice to have pretty previews specified through frontmatter for each blog post.

Would it be something the theme would be interested in? It can also gracefully fallback to normal defaults if it's not specified in the frontmatter such as it is now.

I was thinking about working on this and was wondering if it was a welcomed upstream contribution.

digitalcraftsman commented 7 years ago

Hello @stanzheng,

Hugo already ships templates to support OpenGraph, Google News and Twitter cards. I added them in 7252f59950d868f936ff3cb088ad5c183e53a266. So far they aren't documented (see spf13/hugo#1727).

However, their implementation was discussed in the Hugo forum. The second part of the discussion should reflect the usage.

qwo commented 7 years ago

Awesome. Thanks @digitalcraftsman!