Browse Source

Add GoogleAdsense

master
sipp11 10 years ago
parent
commit
14ffd9171a
  1. 14
      _layouts/post.html
  2. 13
      index.html

14
_layouts/post.html

@ -12,6 +12,18 @@ layout: default
{% if page.kickstarter.widget %} {% if page.kickstarter.widget %}
<iframe class="pull-right" frameborder="0" height="420" scrolling="no" src="{{ page.kickstarter.widget }}" width="220"></iframe> <iframe class="pull-right" frameborder="0" height="420" scrolling="no" src="{{ page.kickstarter.widget }}" width="220"></iframe>
{% endif %} {% endif %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- blogger -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5866875534020861"
data-ad-slot="7472216412"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{{ content }} {{ content }}
</article> </article>
@ -28,4 +40,4 @@ layout: default
})(); })();
</script> </script>
</div> </div>

13
index.html

@ -9,9 +9,20 @@ layout: default
<li> <li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • <small>{{ post.categories | array_to_sentence_string }} • <a href="{{ post.url | prepend: site.baseurl }}#disqus_thread">comments</a></small></span> <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • <small>{{ post.categories | array_to_sentence_string }} • <a href="{{ post.url | prepend: site.baseurl }}#disqus_thread">comments</a></small></span>
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2> <h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
{{ post.content }} {{ post.content }}
</li> </li>
{% if forloop.index % 2 == 0 %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- blogger -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5866875534020861"
data-ad-slot="7472216412"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endif %}
{% endfor %} {% endfor %}
{% include paginator.html %} {% include paginator.html %}

Loading…
Cancel
Save