getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
70 stars 51 forks source link

[hyde] Does Hyde theme supports generation of Twitter Cards / Open Graph data? #197

Closed kamchy closed 3 years ago

kamchy commented 3 years ago

Hello, I wanted to ask if hyde theme supports generation of proper title/image etc. OG tags?

I deployed generated page, but it seems twitter card cannot be generated due to insufficient markup (i.e. missing data): when I checked e.g [this blog entry] (https://kamilachyla.com/posts/java-13-i-14-bloki-tekstowe-i-rekordy/) at twitter cards validator and received errors:

INFO:  Page fetched successfully
INFO:  8 metatags were found
INFO:  twitter:card = summary_large_image tag found
ERROR: Possibly invalid value (if specified) (twitter:title)
ERROR: Possibly invalid value (if specified) (og:title)
ERROR: Possibly invalid value (if specified) (twitter:text:title)
WARN:  this card is redirected to https://kamilachyla.com/posts/java-13-i-14-bloki-tekstowe-i-rekordy/

If hyde supports Twtter Cards / Open Graph data, then missing data is probably due to some kind of misconfiguration on my side. Generated html contains tags in with content I provided in conf.py (TWITTER_CARD variable). However, no other data is generated (title, image etc).

If it does not, then perhaps you could suggest what template(s) should I check to (possibly) try to add those missing tags? Thanks a lot!

Kwpolska commented 3 years ago

That seems to be a bug in the hyde theme (namely, leftover references to use_open_graph, which was deleted).