I try to configure twitter cards but until now fails.
it just doesn’t produce any card so far, no image, no description, just the normal url.
I tried with another baseurl, same result, the output of twitter_cards or opengraph does not change.
Please tell me what I did wrong.
config.toml
baseurl = “/”
title = ‘my_site’
[params]
title = ‘my_site’
images = [‘/Images/history/favicons/symbole_perso_deux_arbres.webp’]
front-matter:
images = [‘/Images/spirituality/mythology/adam_eve_fall_eden.jpg’]
in inject/head.html:
{{ template “_internal/twitter_cards.html” . }}
{{ template “_internal/opengraph.html” . }}
And this is the corresponding part of the html for the homepage:
Title: “The purpose of this website”
bodystyle: “h1_intro”
booktoc: false
Kind: home
the output is:
<meta name=twitter:image content="/Images/history/favicons/symbole_perso_deux_arbres.webp">
<meta name=twitter:title content="The purpose of this website">
<meta name=twitter:description content="The purpose of this site is to promote a way of life and a vision of the world based on science as well as the spiritual rehabilitating the instincts we evolved with in terms of food, health and love life. Thanks to this definitive change of the human condition, a unification and regeneration of the human race becomes possible, in order to carry out its intended destiny, politically or otherwise.">
<meta name=twitter:site content="@NNPartyNow">
<meta property="og:title" content="The purpose of this website">
<meta property="og:description" content="The purpose of this site is to promote a way of life and a vision of the world based on science as well as the spiritual rehabilitating the instincts we evolved with in terms of food, health and love life. Thanks to this definitive change of the human condition, a unification and regeneration of the human race becomes possible, in order to carry out its intended destiny, politically or otherwise.">
<meta property="og:type" content="website">
<meta property="og:url" content="/">
<meta property="og:image" content="/Images/history/favicons/symbole_perso_deux_arbres.webp">
<meta property="og:site_name" content="my-site">
I checked on another site, and opengraph/twitter related meta tags are generated as intended or so it seems. On one page I have defined this property:
images: [‘/Images/spirituality/640px-The_Garden_of_Earthly_Delights_by_Bosch_High_Resolutioncrop.jpg’]
and it generates:
<meta name=twitter:image content=“/Images/spirituality/640px-The_Garden_of_Earthly_Delights_by_Bosch_High_Resolutioncrop.jpg”>