add the social medias card metadata for the webpages, optional
Thecarisma opened this issue · 1 comments
Thecarisma commented
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@flickr" />
<meta name="twitter:title" content="Small Island Developing States Photo Submission" />
<meta name="twitter:description" content="View the album on Flickr." />
<meta name="twitter:image" content="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" />
can be set in the conf.py as
html_theme_options = {
"has_twitter_meta_data": True,
"twitter_handle": "@themata",
"twitter_meta_data": {
"card": "",
"site": "",
"title": "",
"description": "",
"image": "",
}
}
The default card value is summary, default site is the twitter handle of the website, the default title is the title of the project, the default description is the website description the default image is the site icon. The fields are optional.
See https://cards-dev.twitter.com/validator https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary