Add embedded tweet JS

This commit is contained in:
Oliver Davies 2016-03-18 02:29:59 +00:00
parent 828e650c3a
commit dead8a3f82
3 changed files with 11 additions and 4 deletions

View file

@ -13,4 +13,5 @@ g.task 'vendor-scripts', =>
'vendor/bower/jquery/dist/jquery.js', 'vendor/bower/jquery/dist/jquery.js',
'vendor/bower/bootstrap-sass/assets/javascripts/bootstrap/collapse.js', 'vendor/bower/bootstrap-sass/assets/javascripts/bootstrap/collapse.js',
'scripts/vendor/github-cards.js' 'scripts/vendor/github-cards.js'
'scripts/vendor/tweets.js'
], 'vendor.js' ], 'vendor.js'

10
scripts/vendor/tweets.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -95,10 +95,6 @@
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
{% if page.tweets %}
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{% if site.google_analytics_tracking_id %} {% if site.google_analytics_tracking_id %}
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
{% endif %} {% endif %}