aboutsummaryrefslogtreecommitdiffstats
path: root/site/_includes/twitterFeed.html
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-08 12:39:57 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-10 14:53:01 +0100
commitc530e84843444a40804e0c2b038c2ec53fe411b2 (patch)
tree1a9eebf49fd85027ba472bad8c178d686bad8d56 /site/_includes/twitterFeed.html
webdocs-agl: added developer website template
Change-Id: I4a45ee0ad5dd0c29a6d6876a0e02cd5550c010e9 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/_includes/twitterFeed.html')
-rw-r--r--site/_includes/twitterFeed.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/site/_includes/twitterFeed.html b/site/_includes/twitterFeed.html
new file mode 100644
index 0000000..1fde3ab
--- /dev/null
+++ b/site/_includes/twitterFeed.html
@@ -0,0 +1,20 @@
+<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/{{ site.twitter.hashtag }}" data-widget-id="{{ site.twitter.widgetid }}">Tweets by @@{{ site.twitter.hashtag }}</a>
+
+<script>
+window.twttr = (function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0],
+ t = window.twttr || {};
+ if (d.getElementById(id)) return t;
+ js = d.createElement(s);
+ js.id = id;
+ js.src = "https://platform.twitter.com/widgets.js";
+ fjs.parentNode.insertBefore(js, fjs);
+
+ t._e = [];
+ t.ready = function(f) {
+ t._e.push(f);
+ };
+
+ return t;
+}(document, "script", "twitter-wjs"));
+</script>