Permalink
Browse files

adding google analytics and disqus comments

  • Loading branch information...
agounaris committed Jul 25, 2015
1 parent 1a93e2b commit a4f268e057bed690514859e0ef36635250982d4a
Showing with 41 additions and 2 deletions.
  1. +2 −1 _config.yml
  2. +15 −0 _includes/disqus.html
  3. +18 −0 _layouts/default.html
  4. +4 −0 _layouts/post.html
  5. +2 −1 _posts/2013-11-15-hello-world.md
View
@@ -5,7 +5,8 @@ paginate_path: "page:num"
exclude: ["README.md"] # files to exclude
highlighter: pygments
markdown: kramdown
disqus: dbyll
google_analytics: dbyll
defaults:
-
View
@@ -0,0 +1,15 @@
{% if site.disqus %}
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = '{{ site.disqus }}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(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="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endif %}
View
@@ -3,3 +3,21 @@
name : dbyll
---
{% include default.html %}
{% if site.google_analytics %}
<!-- Asynchronous Google Analytics snippet -->
<script>
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', '{{ site.google_analytics }}']);
_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 %}
View
@@ -2,3 +2,7 @@
layout: default
---
{% include post.html %}
{% if site.disqus and page.comments %}
{% include disqus.html %}
{% endif %}
@@ -4,12 +4,13 @@ title: Hello World!
categories: [general, setup, demo]
tags: [demo, dbyll, dbtek, setup]
fullview: true
comments: true
---
**dbyll** is minimalist, stylish theme for jekyll. Supports gravatar, account links (github, twitter, e-mail, pinterest, résume file) and a bio.
**dbyll** is brought to you by **[dbtek](http://ismaildemirbilek.com)**. Open sourced under [MIT](http://opensource.org/licenses/MIT) license.
### dbyll is on GitHub
<a class="btn btn-default" href="https://github.com/dbtek/dbyll">Grab your copy now!</a>

0 comments on commit a4f268e

Please sign in to comment.