Skip to content

Commit

Permalink
fix: Twitter Card use name instead property (jaspervdj#971)
Browse files Browse the repository at this point in the history
> Twitter’s parser will fall back to using property and content, so there is no need to modify existing Open Graph protocol markup if it already exists.
>
> [Getting started with Cards | Docs | Twitter Developer Platform](https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started)

It may be usable for now since it is fallback, but it is better to output the correct one just in case.
  • Loading branch information
ncaq authored Apr 3, 2023
1 parent 9d4bd0d commit 13b4697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Hakyll/Web/Meta/TwitterCard.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ twitterCardTemplate = do
twitterCardTemplateString :: String
twitterCardTemplateString =
"<meta name=\"twitter:card\" content=\"summary\" />\
\$if(twitter-creator)$<meta property=\"twitter:creator\" content=\"$twitter-creator$\" />$endif$\
\$if(twitter-site)$<meta property=\"twitter:site\" content=\"$twitter-site$\" />$endif$"
\$if(twitter-creator)$<meta name=\"twitter:creator\" content=\"$twitter-creator$\" />$endif$\
\$if(twitter-site)$<meta name=\"twitter:site\" content=\"$twitter-site$\" />$endif$"

0 comments on commit 13b4697

Please sign in to comment.