Add embedded tweet JS
This commit is contained in:
parent
828e650c3a
commit
dead8a3f82
|
@ -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
10
scripts/vendor/tweets.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue