Skip to content

Commit

Permalink
Adding google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
tryhendri committed Jan 8, 2015
1 parent eed6c19 commit 78ddbfe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions _includes/default.html
Expand Up @@ -106,5 +106,6 @@
<script type="text/javascript" src="{{ site.BASE_PATH }}/assets/resources/jquery/jquery.min.js"></script>
<script type="text/javascript" src="{{ site.BASE_PATH }}/assets/resources/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ site.BASE_PATH }}/assets/js/app.js"></script>
{% include google_analytics.html %}
</body>
</html>
2 changes: 2 additions & 0 deletions _includes/page.html
Expand Up @@ -3,3 +3,5 @@ <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% e
</div>

{{ content }}

{% include google_analytics.html %}
32 changes: 19 additions & 13 deletions _includes/post.html
@@ -1,13 +1,13 @@
<div class="page-header">
<h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endif %}</h1>
</div>

<article>

<div class="col-sm-10">
<span class="post-date">
{% assign d = page.date | date: "%d" | plus:'0' %}
{{ page.date | date: "%B" }}
{{ page.date | date: "%B" }}
{% case d %}
{% when 1 or 21 or 31 %}{{ d }}st,
{% when 2 or 22 %}{{ d }}nd,
Expand All @@ -25,28 +25,28 @@ <h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endi
<li><i class="fa fa-folder-open"></i></li>
{% assign categories_list = page.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
{% for category in categories_list %}
<li><a href="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category }}-ref">
{{ category | join: "/" }} <span>({{ site.categories[category].size }})</span>
{% unless forloop.last %},{% endunless %}
</a></li>
{% endfor %}
{% else %}
{% for category in categories_list %}
{% for category in categories_list %}
<li><a href="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category[0] }}-ref">
{{ category[0] | join: "/" }} <span>/{{ category[1].size }})</span>
</a></li>
{% endfor %}
{% endif %}
</ul>
{% endunless %}
{% endunless %}

{% unless page.tags == empty %}
<ul class="list-inline">
<li><i class="fa fa-tags"></i></li>
{% assign tags_list = page.tags %}
{% if tags_list.first[0] == null %}
{% for tag in tags_list %}
{% for tag in tags_list %}
<li>
<a href="{{ site.BASE_PATH }}/{{ site.tags_path }}#{{ tag }}-ref">
{{ tag }} <span>({{ site.tags[tag].size }})</span>
Expand All @@ -55,19 +55,19 @@ <h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endi
</li>
{% endfor %}
{% else %}
{% for tag in tags_list %}
{% for tag in tags_list %}
<li>
<a href="{{ site.BASE_PATH }}/{{ site.tags_path }}#{{ tag[0] }}-ref">
{{ tag[0] }} <span>({{ tag[1].size }})</span>
{% unless forloop.last %},{% endunless %}
</a>
</li>

{% endfor %}
{% endif %}
{% assign tags_list = nil %}
</ul>
{% endunless %}
{% endunless %}

<hr>

Expand All @@ -91,15 +91,19 @@ <h4 class="section-title">Share Post</h4>
</a>
</section>

<section class="col-sm-6 author">
<!-- <section class="col-sm-6 author">
<img src="http://www.gravatar.com/avatar/{{site.author.email_md5}}" class="img-rounded author-image" />
<h4 class="section-title author-name">{{site.author.name}}</h4>
<p class="author-bio">{{site.author.bio}}</p>
</section>
</section> -->
</div>

<div class="clearfix"></div>

{% include comments.html %}

<div class="clearfix"></div><div class="clearfix"></div><div class="clearfix"></div><div class="clearfix"></div><div class="clearfix"></div><div class="clearfix"></div>

<ul class="pager">
{% if page.previous %}
<li class="previous"><a href="{{ site.BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
Expand All @@ -115,9 +119,11 @@ <h4 class="section-title author-name">{{site.author.name}}</h4>

<hr>
</div>

<div class="col-sm-2 sidebar-2">

</div>
</article>
<div class="clearfix"></div>

{% include google_analytics.html %}

0 comments on commit 78ddbfe

Please sign in to comment.