Abstracted out the google adsense code
This commit is contained in:
parent
cc61cffa81
commit
439fdddc93
11
_config.yml
11
_config.yml
@ -91,5 +91,16 @@ disqus_show_comment_count: true
|
|||||||
# Google Analytics
|
# Google Analytics
|
||||||
google_analytics_tracking_id: UA-6877554-1
|
google_analytics_tracking_id: UA-6877554-1
|
||||||
|
|
||||||
|
# Google Adsense
|
||||||
|
google_ad_client: ca-pub-3055920918910714
|
||||||
|
|
||||||
|
google_sidead_slot: 8451358572
|
||||||
|
google_sidead_width: 160
|
||||||
|
google_sidead_height: 600
|
||||||
|
|
||||||
|
google_bannerad_slot: 4021158971
|
||||||
|
google_bannerad_width: 468
|
||||||
|
google_bannerad_height: 60
|
||||||
|
|
||||||
# Facebook Like
|
# Facebook Like
|
||||||
facebook_like: true
|
facebook_like: true
|
||||||
|
@ -16,17 +16,18 @@
|
|||||||
</header>
|
</header>
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
|
|
||||||
<script type="text/javascript"><!--
|
{% if site.google_bannerad_slot %}
|
||||||
google_ad_client = "ca-pub-3055920918910714";
|
<script type="text/javascript"><!--
|
||||||
/* moparscape.org_banner */
|
google_ad_client = "{{site.google_ad_client}}";
|
||||||
google_ad_slot = "4021158971";
|
google_ad_slot = "{{site.google_bannerad_slot}}";
|
||||||
google_ad_width = 468;
|
google_ad_width = {{site.google_bannerad_width}};
|
||||||
google_ad_height = 60;
|
google_ad_height = {{site.google_bannerad_height}};
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if index %}
|
{% if index %}
|
||||||
<div class="entry-content">{{ content | excerpt }}</div>
|
<div class="entry-content">{{ content | excerpt }}</div>
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
|
{% if site.google_sidead_slot %}
|
||||||
<section>
|
<section>
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
google_ad_client = "ca-pub-3055920918910714";
|
google_ad_client = "{{site.google_ad_client}}";
|
||||||
/* moparscape.org-skyscraper */
|
google_ad_slot = "{{site.google_sidead_slot}}";
|
||||||
google_ad_slot = "8451358572";
|
google_ad_width = {{site.google_sidead_width}};
|
||||||
google_ad_width = 160;
|
google_ad_height = {{site.google_sidead_height}};
|
||||||
google_ad_height = 600;
|
//-->
|
||||||
//-->
|
</script>
|
||||||
</script>
|
<script type="text/javascript"
|
||||||
<script type="text/javascript"
|
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||||
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
</script>
|
||||||
</script>
|
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
@ -10,17 +10,20 @@ layout: default
|
|||||||
{% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
|
{% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
|
||||||
</header>
|
</header>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script type="text/javascript"><!--
|
|
||||||
google_ad_client = "ca-pub-3055920918910714";
|
{% if site.google_bannerad_slot %}
|
||||||
/* moparscape.org_banner */
|
<script type="text/javascript"><!--
|
||||||
google_ad_slot = "4021158971";
|
google_ad_client = "{{site.google_ad_client}}";
|
||||||
google_ad_width = 468;
|
google_ad_slot = "{{site.google_bannerad_slot}}";
|
||||||
google_ad_height = 60;
|
google_ad_width = {{site.google_bannerad_width}};
|
||||||
//-->
|
google_ad_height = {{site.google_bannerad_height}};
|
||||||
</script>
|
//-->
|
||||||
<script type="text/javascript"
|
</script>
|
||||||
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
<script type="text/javascript"
|
||||||
</script>
|
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
{% unless page.footer == false %}
|
{% unless page.footer == false %}
|
||||||
<footer>
|
<footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user