diff options
author | Barry Clark <barry@barryclark.co> | 2014-02-06 19:18:00 -0500 |
---|---|---|
committer | Barry Clark <barry@barryclark.co> | 2014-02-06 19:18:00 -0500 |
commit | 72ac45045456bdbbbecb38db2e62e113f22f37d4 (patch) | |
tree | 048e5ed7634e6c048c88813291a390078bdc23d9 /_includes | |
download | kompetenzbolzen.github.io-72ac45045456bdbbbecb38db2e62e113f22f37d4.tar.gz |
First commit of base theme.
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/analytics.html | 14 | ||||
-rw-r--r-- | _includes/disqus.html | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..6707963 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,14 @@ +<!-- Google Analytics --> +<script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ site.googleanalytics.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>
\ No newline at end of file diff --git a/_includes/disqus.html b/_includes/disqus.html new file mode 100644 index 0000000..82f4fe5 --- /dev/null +++ b/_includes/disqus.html @@ -0,0 +1,16 @@ +<div id="disqus_thread"></div> +<script type="text/javascript"> + /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ + var disqus_shortname = '{{ site.disqus.shortname }}'; // required: replace example with your forum shortname + + {% if include.disqus_identifier %} + var disqus_identifier = "{{ include.disqus_identifier }}"; + {% endif %} + + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); + </script> +<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
\ No newline at end of file |