Skip to content

Commit f92f466

Browse files
author
JD
authored
Added Twitter Card Support (alshedivat#120)
* 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.
1 parent dacac74 commit f92f466

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ _site
44
.DS_store
55
.ruby-version
66
Gemfile.lock
7-
7+
.tweet-cache/

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ group :jekyll_plugins do
55
gem 'jekyll-email-protect'
66
gem 'jekyll-paginate-v2'
77
gem 'jekyll-scholar'
8+
gem 'jekyll-twitter-plugin'
89
gem 'jemoji'
910
gem 'unicode_utils'
1011
end

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ plugins:
114114
- jekyll-paginate-v2
115115
- jekyll/scholar
116116
- jemoji
117+
- 'jekyll-twitter-plugin'
117118
# - bootstrap
118119
# - material-sass
119120

_posts/2020-09-28-twitter.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: post
3+
title: a post with twitter
4+
date: 2020-09-28 11:12:00-0400
5+
description: an example of a blog post with twitter
6+
---
7+
A sample blog page that demonstrates the inclusion of Tweets/Timelines/etc.
8+
9+
<br />
10+
11+
# Tweet
12+
An example of displaying a tweet :
13+
{% twitter https://twitter.com/rubygems/status/518821243320287232 %}
14+
<br />
15+
<br />
16+
<br />
17+
<br />
18+
# Timeline
19+
An example of pulling from a timeline :
20+
{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %}
21+
<br />
22+
<br />
23+
<br />
24+
<br />
25+
# Additional Details
26+
For more details on using the plugin visit : https://github.com/red-data-tools/jekyll-jupyter-notebook

0 commit comments

Comments
 (0)