From f92f466117c48885790114a683f797327e49e314 Mon Sep 17 00:00:00 2001 From: JD Date: Sat, 3 Oct 2020 18:16:34 -0400 Subject: [PATCH] Added Twitter Card Support (#120) * Feature Request : https://github.com/alshedivat/al-folio/issues/85 * Created sample blog post for tweet card examples. * Added twitter plugin dependency : https://github.com/rob-murray/jekyll-twitter-plugin * Added .tweet-cache/ to .gitignore. --- .gitignore | 2 +- Gemfile | 1 + _config.yml | 1 + _posts/2020-09-28-twitter.md | 26 ++++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 _posts/2020-09-28-twitter.md diff --git a/.gitignore b/.gitignore index e31aadd..7b7ee52 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ _site .DS_store .ruby-version Gemfile.lock - +.tweet-cache/ diff --git a/Gemfile b/Gemfile index 454c78a..2ece461 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ group :jekyll_plugins do gem 'jekyll-email-protect' gem 'jekyll-paginate-v2' gem 'jekyll-scholar' + gem 'jekyll-twitter-plugin' gem 'jemoji' gem 'unicode_utils' end diff --git a/_config.yml b/_config.yml index ca85ac3..2c97313 100644 --- a/_config.yml +++ b/_config.yml @@ -114,6 +114,7 @@ plugins: - jekyll-paginate-v2 - jekyll/scholar - jemoji + - 'jekyll-twitter-plugin' # - bootstrap # - material-sass diff --git a/_posts/2020-09-28-twitter.md b/_posts/2020-09-28-twitter.md new file mode 100644 index 0000000..be9ea9d --- /dev/null +++ b/_posts/2020-09-28-twitter.md @@ -0,0 +1,26 @@ +--- +layout: post +title: a post with twitter +date: 2020-09-28 11:12:00-0400 +description: an example of a blog post with twitter +--- +A sample blog page that demonstrates the inclusion of Tweets/Timelines/etc. + +
+ +# Tweet +An example of displaying a tweet : +{% twitter https://twitter.com/rubygems/status/518821243320287232 %} +
+
+
+
+# Timeline +An example of pulling from a timeline : +{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %} +
+
+
+
+# Additional Details +For more details on using the plugin visit : https://github.com/red-data-tools/jekyll-jupyter-notebook \ No newline at end of file