Skip to content

Commit

Permalink
Added Twitter Card Support (alshedivat#120)
Browse files Browse the repository at this point in the history
* Feature Request : alshedivat#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.
  • Loading branch information
JD authored Oct 3, 2020
1 parent dacac74 commit f92f466
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ _site
.DS_store
.ruby-version
Gemfile.lock

.tweet-cache/
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ plugins:
- jekyll-paginate-v2
- jekyll/scholar
- jemoji
- 'jekyll-twitter-plugin'
# - bootstrap
# - material-sass

Expand Down
26 changes: 26 additions & 0 deletions _posts/2020-09-28-twitter.md
Original file line number Diff line number Diff line change
@@ -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.

<br />

# Tweet
An example of displaying a tweet :
{% twitter https://twitter.com/rubygems/status/518821243320287232 %}
<br />
<br />
<br />
<br />
# Timeline
An example of pulling from a timeline :
{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %}
<br />
<br />
<br />
<br />
# Additional Details
For more details on using the plugin visit : https://github.com/red-data-tools/jekyll-jupyter-notebook

0 comments on commit f92f466

Please sign in to comment.