aboutsummaryrefslogtreecommitdiff
path: root/source/_includes
diff options
context:
space:
mode:
Diffstat (limited to 'source/_includes')
-rw-r--r--source/_includes/after_footer.html5
-rw-r--r--source/_includes/archive_post.html8
-rw-r--r--source/_includes/article.html29
-rw-r--r--source/_includes/asides/delicious.html8
-rw-r--r--source/_includes/asides/github.html30
-rw-r--r--source/_includes/asides/googleplus.html11
-rw-r--r--source/_includes/asides/pinboard.html19
-rw-r--r--source/_includes/asides/recent_posts.html10
-rw-r--r--source/_includes/custom/after_footer.html3
-rw-r--r--source/_includes/custom/asides/about.html4
-rw-r--r--source/_includes/custom/category_feed.xml27
-rw-r--r--source/_includes/custom/footer.html4
-rw-r--r--source/_includes/custom/head.html3
-rw-r--r--source/_includes/custom/header.html6
-rw-r--r--source/_includes/custom/navigation.html4
-rw-r--r--source/_includes/disqus.html21
-rw-r--r--source/_includes/facebook_like.html10
-rw-r--r--source/_includes/footer.html1
-rw-r--r--source/_includes/google_analytics.html13
-rw-r--r--source/_includes/google_plus_one.html9
-rw-r--r--source/_includes/head.html30
-rw-r--r--source/_includes/header.html1
-rw-r--r--source/_includes/navigation.html15
-rw-r--r--source/_includes/post/author.html8
-rw-r--r--source/_includes/post/categories.html10
-rw-r--r--source/_includes/post/date.html5
-rw-r--r--source/_includes/post/disqus_thread.html1
-rw-r--r--source/_includes/post/sharing.html11
-rw-r--r--source/_includes/twitter_sharing.html11
29 files changed, 317 insertions, 0 deletions
diff --git a/source/_includes/after_footer.html b/source/_includes/after_footer.html
new file mode 100644
index 00000000..08b8e340
--- /dev/null
+++ b/source/_includes/after_footer.html
@@ -0,0 +1,5 @@
+{% include disqus.html %}
+{% include facebook_like.html %}
+{% include google_plus_one.html %}
+{% include twitter_sharing.html %}
+{% include custom/after_footer.html %}
diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html
new file mode 100644
index 00000000..210dbbbe
--- /dev/null
+++ b/source/_includes/archive_post.html
@@ -0,0 +1,8 @@
+{% capture category %}{{ post.categories | size }}{% endcapture %}
+<h1><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
+<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
+{% if category != '0' %}
+<footer>
+ <span class="categories">posted in {{ post.categories | category_links }}</span>
+</footer>
+{% endif %}
diff --git a/source/_includes/article.html b/source/_includes/article.html
new file mode 100644
index 00000000..84279977
--- /dev/null
+++ b/source/_includes/article.html
@@ -0,0 +1,29 @@
+{% unless page.no_header %}
+ <header>
+ {% if index %}
+ <h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
+ {% else %}
+ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
+ {% endif %}
+ {% unless page.meta == false %}
+ <p class="meta">
+ {% include post/date.html %}{{ time }}
+ {% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
+ | <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread"
+ data-disqus-identifier="{% if post.meta.disqus_id %}{{ post.meta.disqus_id }}{% else %}{{ site.url }}{{ post.url }}{% endif %}">Comments</a>
+ {% endif %}
+ </p>
+ {% endunless %}
+ </header>
+{% endunless %}
+{% if index %}
+ <div class="entry-content">{{ content | excerpt }}</div>
+ {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
+ {% if excerpted == 'true' %}
+ <footer>
+ <a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
+ </footer>
+ {% endif %}
+{% else %}
+<div class="entry-content">{{ content }}</div>
+{% endif %}
diff --git a/source/_includes/asides/delicious.html b/source/_includes/asides/delicious.html
new file mode 100644
index 00000000..115cdcbc
--- /dev/null
+++ b/source/_includes/asides/delicious.html
@@ -0,0 +1,8 @@
+{% if site.delicious_user %}
+<section>
+ <h1>On Delicious</h1>
+ <div id="delicious"></div>
+ <script type="text/javascript" src="http://feeds.delicious.com/v2/json/{{ site.delicious_user }}?count={{ site.delicious_count }}&amp;sort=date&amp;callback=renderDeliciousLinks"></script>
+ <p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks &raquo;</a></p>
+</section>
+{% endif %} \ No newline at end of file
diff --git a/source/_includes/asides/github.html b/source/_includes/asides/github.html
new file mode 100644
index 00000000..b0bf9596
--- /dev/null
+++ b/source/_includes/asides/github.html
@@ -0,0 +1,30 @@
+{% if site.github_user %}
+<section>
+ <h1>GitHub Repos</h1>
+ <ul id="gh_repos">
+ <li class="loading">Status updating...</li>
+ </ul>
+ {% if site.github_show_profile_link %}
+ <a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub
+ {% endif %}
+ <script type="text/javascript">
+ $(document).ready(function(){
+ if (!window.jXHR){
+ var jxhr = document.createElement('script');
+ jxhr.type = 'text/javascript';
+ jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(jxhr, s);
+ }
+
+ github.showRepos({
+ user: '{{site.github_user}}',
+ count: {{site.github_repo_count}},
+ skip_forks: {{site.github_skip_forks}},
+ target: '#gh_repos'
+ });
+ });
+ </script>
+ <script src="{{ root_url }}/javascripts/github.js" type="text/javascript"> </script>
+</section>
+{% endif %}
diff --git a/source/_includes/asides/googleplus.html b/source/_includes/asides/googleplus.html
new file mode 100644
index 00000000..00a0aa85
--- /dev/null
+++ b/source/_includes/asides/googleplus.html
@@ -0,0 +1,11 @@
+{% if site.googleplus_user %}
+<section class="googleplus{% if site.googleplus_hidden %} googleplus-hidden{% endif %}">
+ <h1>
+ <a href="https://plus.google.com/{{ site.googleplus_user }}?rel=author">
+ <img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
+ Google+
+ </a>
+ </h1>
+</section>
+{% endif %}
+
diff --git a/source/_includes/asides/pinboard.html b/source/_includes/asides/pinboard.html
new file mode 100644
index 00000000..c89c3e7b
--- /dev/null
+++ b/source/_includes/asides/pinboard.html
@@ -0,0 +1,19 @@
+{% if site.pinboard_user %}
+<section>
+ <h1>My Pinboard</h1>
+ <ul id="pinboard_linkroll">Fetching linkroll...</ul>
+ <p><a href="http://pinboard.in/u:{{ site.pinboard_user }}">My Pinboard Bookmarks &raquo;</a></p>
+</section>
+<script type="text/javascript">
+ var linkroll = 'pinboard_linkroll'; //id target for pinboard list
+ var pinboard_user = "{{ site.pinboard_user }}"; //id target for pinboard list
+ var pinboard_count = {{ site.pinboard_count }}; //id target for pinboard list
+ (function(){
+ var pinboardInit = document.createElement('script');
+ pinboardInit.type = 'text/javascript';
+ pinboardInit.async = true;
+ pinboardInit.src = '{{ root_url }}/javascripts/pinboard.js';
+ document.getElementsByTagName('head')[0].appendChild(pinboardInit);
+ })();
+</script>
+{% endif %}
diff --git a/source/_includes/asides/recent_posts.html b/source/_includes/asides/recent_posts.html
new file mode 100644
index 00000000..4b108474
--- /dev/null
+++ b/source/_includes/asides/recent_posts.html
@@ -0,0 +1,10 @@
+<section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+ {% for post in site.posts limit: site.recent_posts %}
+ <li class="post">
+ <a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a>
+ </li>
+ {% endfor %}
+ </ul>
+</section>
diff --git a/source/_includes/custom/after_footer.html b/source/_includes/custom/after_footer.html
new file mode 100644
index 00000000..bce25dd9
--- /dev/null
+++ b/source/_includes/custom/after_footer.html
@@ -0,0 +1,3 @@
+{% comment %}
+ Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
+{% endcomment %}
diff --git a/source/_includes/custom/asides/about.html b/source/_includes/custom/asides/about.html
new file mode 100644
index 00000000..59d309e4
--- /dev/null
+++ b/source/_includes/custom/asides/about.html
@@ -0,0 +1,4 @@
+<section>
+ <h1>About Me</h1>
+ <p>A little something about me.</p>
+</section>
diff --git a/source/_includes/custom/category_feed.xml b/source/_includes/custom/category_feed.xml
new file mode 100644
index 00000000..8c93ed39
--- /dev/null
+++ b/source/_includes/custom/category_feed.xml
@@ -0,0 +1,27 @@
+---
+layout: null
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><![CDATA[{% if site.titlecase %}{{ page.title | titlecase | cdata_escape }}{% else %}{{ page.title | cdata_escape }}{% endif %} | {{ site.title | cdata_escape }}]]></title>
+ <link href="{{ site.url }}/{{ page.feed_url }}" rel="self"/>
+ <link href="{{ site.url }}/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}/</id>
+ <author>
+ <name><![CDATA[{{ site.author | strip_html }}]]></name>
+ {% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %}
+ </author>
+ <generator uri="http://octopress.org/">Octopress</generator>
+
+ {% for post in site.categories[page.category] limit: 5 %}
+ <entry>
+ <title type="html"><![CDATA[{% if site.titlecase %}{{ post.title | titlecase | cdata_escape }}{% else %}{{ post.title | cdata_escape }}{% endif %}]]></title>
+ <link href="{{ site.url }}{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}{{ post.id }}</id>
+ <content type="html"><![CDATA[{{ post.content | expand_urls: site.url | markdownify | cdata_escape }}]]></content>
+ </entry>
+ {% endfor %}
+</feed>
diff --git a/source/_includes/custom/footer.html b/source/_includes/custom/footer.html
new file mode 100644
index 00000000..e12f0678
--- /dev/null
+++ b/source/_includes/custom/footer.html
@@ -0,0 +1,4 @@
+<p>
+ Copyright &copy; {{ site.time | date: "%Y" }} - {{ site.author }} -
+ <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
+</p>
diff --git a/source/_includes/custom/head.html b/source/_includes/custom/head.html
new file mode 100644
index 00000000..824a41e7
--- /dev/null
+++ b/source/_includes/custom/head.html
@@ -0,0 +1,3 @@
+<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
+<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
diff --git a/source/_includes/custom/header.html b/source/_includes/custom/header.html
new file mode 100644
index 00000000..35f9c059
--- /dev/null
+++ b/source/_includes/custom/header.html
@@ -0,0 +1,6 @@
+<hgroup>
+ <h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
+ {% if site.subtitle %}
+ <h2>{{ site.subtitle }}</h2>
+ {% endif %}
+</hgroup>
diff --git a/source/_includes/custom/navigation.html b/source/_includes/custom/navigation.html
new file mode 100644
index 00000000..d6bd4246
--- /dev/null
+++ b/source/_includes/custom/navigation.html
@@ -0,0 +1,4 @@
+<ul class="main-navigation">
+ <li><a href="{{ root_url }}/">Blog</a></li>
+ <li><a href="{{ root_url }}/blog/archives">Archives</a></li>
+</ul>
diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html
new file mode 100644
index 00000000..49c6a29c
--- /dev/null
+++ b/source/_includes/disqus.html
@@ -0,0 +1,21 @@
+{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
+{% if site.disqus_short_name and page.comments != false %}
+<script type="text/javascript">
+ var disqus_shortname = '{{ site.disqus_short_name }}';
+ {% if page.comments == true %}
+ {% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %}
+ // var disqus_developer = 1;
+ var disqus_identifier = '{{ site.url }}{{ page.url }}';
+ var disqus_url = '{{ site.url }}{{ page.url }}';
+ var disqus_script = 'embed.js';
+ {% else %}
+ {% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %}
+ var disqus_script = 'count.js';
+ {% endif %}
+ (function () {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ }());
+</script>
+{% endif %}
diff --git a/source/_includes/facebook_like.html b/source/_includes/facebook_like.html
new file mode 100644
index 00000000..d263e6d2
--- /dev/null
+++ b/source/_includes/facebook_like.html
@@ -0,0 +1,10 @@
+{% if site.facebook_like %}
+<div id="fb-root"></div>
+<script>(function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) {return;}
+ js = d.createElement(s); js.id = id; js.async = true;
+ js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
+{% endif %}
diff --git a/source/_includes/footer.html b/source/_includes/footer.html
new file mode 100644
index 00000000..3a8c7687
--- /dev/null
+++ b/source/_includes/footer.html
@@ -0,0 +1 @@
+{% include custom/footer.html %}
diff --git a/source/_includes/google_analytics.html b/source/_includes/google_analytics.html
new file mode 100644
index 00000000..4d4d5969
--- /dev/null
+++ b/source/_includes/google_analytics.html
@@ -0,0 +1,13 @@
+{% if site.google_analytics_tracking_id %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+{% endif %}
diff --git a/source/_includes/google_plus_one.html b/source/_includes/google_plus_one.html
new file mode 100644
index 00000000..b69ddaeb
--- /dev/null
+++ b/source/_includes/google_plus_one.html
@@ -0,0 +1,9 @@
+{% if site.google_plus_one %}
+ <script type="text/javascript">
+ (function() {
+ var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
+ script.src = 'https://apis.google.com/js/plusone.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
+ })();
+ </script>
+{% endif %}
diff --git a/source/_includes/head.html b/source/_includes/head.html
new file mode 100644
index 00000000..6b5412ca
--- /dev/null
+++ b/source/_includes/head.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
+<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
+<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+ <title>{% if page.title %}{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} - {% endif %}{{ site.title }}</title>
+ <meta name="author" content="{{ site.author }}">
+
+ {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
+ <meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
+ {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
+
+ <!-- http://t.co/dKP3o1e -->
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
+ <link rel="canonical" href="{{ canonical }}">
+ <link href="{{ root_url }}/favicon.png" rel="icon">
+ <link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
+ <script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+ <script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script>
+ <script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
+ {% include custom/head.html %}
+ {% include google_analytics.html %}
+</head>
diff --git a/source/_includes/header.html b/source/_includes/header.html
new file mode 100644
index 00000000..524de651
--- /dev/null
+++ b/source/_includes/header.html
@@ -0,0 +1 @@
+{% include custom/header.html %}
diff --git a/source/_includes/navigation.html b/source/_includes/navigation.html
new file mode 100644
index 00000000..2f0e6280
--- /dev/null
+++ b/source/_includes/navigation.html
@@ -0,0 +1,15 @@
+<ul class="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
+ <li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+ {% if site.subscribe_email %}
+ <li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
+ {% endif %}
+</ul>
+ {% if site.simple_search %}
+<form action="{{ site.simple_search }}" method="get">
+ <fieldset role="search">
+ <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ </fieldset>
+</form>
+ {% endif %}
+{% include custom/navigation.html %}
diff --git a/source/_includes/post/author.html b/source/_includes/post/author.html
new file mode 100644
index 00000000..83dd6a89
--- /dev/null
+++ b/source/_includes/post/author.html
@@ -0,0 +1,8 @@
+{% if post.author %}
+ {% assign author = post.author %}
+{% elsif page.author %}
+ {% assign author = page.author %}
+{% else %}
+ {% assign author = site.author %}
+{% endif %}
+{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
diff --git a/source/_includes/post/categories.html b/source/_includes/post/categories.html
new file mode 100644
index 00000000..4a98b29d
--- /dev/null
+++ b/source/_includes/post/categories.html
@@ -0,0 +1,10 @@
+{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
+{% unless category == '0' %}
+<span class="categories">
+ {% if post %}
+ {{ post.categories | category_links }}
+ {% else %}
+ {{ page.categories | category_links }}
+ {% endif %}
+</span>
+{% endunless %}
diff --git a/source/_includes/post/date.html b/source/_includes/post/date.html
new file mode 100644
index 00000000..a86953c2
--- /dev/null
+++ b/source/_includes/post/date.html
@@ -0,0 +1,5 @@
+{% if page.date %}{% capture time %}{{ page.date_time_html }}{% endcapture %}{% endif %}
+{% if post.date %}{% capture time %}{{ post.date_time_html }}{% endcapture %}{% endif %}
+
+{% if page.updated %}{% capture updated %}{{ page.date_time_updated_html }}{% endcapture %}{% endif %}
+{% if post.updated %}{% capture updated %}{{ post.date_time_updated_html }}{% endcapture %}{% endif %}
diff --git a/source/_includes/post/disqus_thread.html b/source/_includes/post/disqus_thread.html
new file mode 100644
index 00000000..b1acd8cc
--- /dev/null
+++ b/source/_includes/post/disqus_thread.html
@@ -0,0 +1 @@
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
diff --git a/source/_includes/post/sharing.html b/source/_includes/post/sharing.html
new file mode 100644
index 00000000..d639faa1
--- /dev/null
+++ b/source/_includes/post/sharing.html
@@ -0,0 +1,11 @@
+<div class="sharing">
+ {% if site.twitter_tweet_button %}
+ <a href="//twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
+ {% endif %}
+ {% if site.google_plus_one %}
+ <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
+ {% endif %}
+ {% if site.facebook_like %}
+ <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
+ {% endif %}
+</div>
diff --git a/source/_includes/twitter_sharing.html b/source/_includes/twitter_sharing.html
new file mode 100644
index 00000000..7cd5fbc2
--- /dev/null
+++ b/source/_includes/twitter_sharing.html
@@ -0,0 +1,11 @@
+{% if site.twitter_follow_button or site.twitter_tweet_button %}
+ <script type="text/javascript">
+ (function(){
+ var twitterWidgets = document.createElement('script');
+ twitterWidgets.type = 'text/javascript';
+ twitterWidgets.async = true;
+ twitterWidgets.src = '//platform.twitter.com/widgets.js';
+ document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
+ })();
+ </script>
+{% endif %}