From 3a02e775bb4e6eb865267f0a1bf918e5101f7a3f Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 19 Apr 2021 01:48:22 -0700 Subject: [PATCH] add info about twitter cards.. --- BLOG.md | 9 +++++++++ layout/base.j2 | 1 + 2 files changed, 10 insertions(+) diff --git a/BLOG.md b/BLOG.md index 0eaa271..1b0abb4 100644 --- a/BLOG.md +++ b/BLOG.md @@ -29,3 +29,12 @@ parent level via: some lines ```` ``` + +If you want to check twitter cards, use the url: https://cards-dev.twitter.com/validator + +The following additional meta data maybe added: +twittertitle: Use this instead of title +image: URL of an image to show along with the post +imagealt: Alt text for the image + +[twitter card reference](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup) diff --git a/layout/base.j2 b/layout/base.j2 index f612556..36461a5 100644 --- a/layout/base.j2 +++ b/layout/base.j2 @@ -33,6 +33,7 @@ {% endif %} {% if resource.meta.image %} {% endif %} +{% if site.context.tweet_via %} {% endif %} {% if resource.meta.imagealt %} {% endif %} {% if resource.meta.twitterlabel1 %} {% endif %} {% if resource.meta.twitterlabel2 %} {% endif %}