Skip to content
Permalink
Browse files

구글 애드센스 Sidebar 광고 추가

  • Loading branch information
devinlife
devinlife committed May 4, 2019
1 parent b7cc4e4 commit 241765a1a5b2cbcbefd3b6dde515ec5bd18b537f
Showing with 24 additions and 3 deletions.
  1. +2 −0 _config.yml
  2. +11 −0 _includes/GoogleAdSenseSidbar.html
  3. +11 −3 _layouts/single.html
@@ -292,6 +292,8 @@ defaults:
comments: true comments: true
share: true share: true
related: true related: true
toc_ads: true
toc_sticky: true


# _pages # _pages
- scope: - scope:
@@ -0,0 +1,11 @@
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- GoogleAdSenseSidbar -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5216384132518164"
data-ad-slot="2594953841"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@@ -34,11 +34,19 @@
{% endunless %} {% endunless %}


<section class="page__content" itemprop="text"> <section class="page__content" itemprop="text">
{% if page.toc %} {% if page.toc or page.toc_ads %}
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}"> <aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
<nav class="toc"> <nav class="toc">
<header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label }}</h4></header> {% if page.toc %}
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %} <header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label }}</h4></header>
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %}
{% endif %}
</nav>
<!-- devinlife comment : right-sidebar ads -->
<nav class="toc-custom">
{% if page.toc_ads %}
{% include GoogleAdSenseSidbar.html %}
{% endif %}
</nav> </nav>
</aside> </aside>
{% endif %} {% endif %}

0 comments on commit 241765a

Please sign in to comment.
You can’t perform that action at this time.