Skip to content

Commit d99bbe2

Browse files
authored
Merge pull request #10 from coderolls/adsense/add-adsense-pub-and-enable
Add jekyll adsense if code block under head in default html
2 parents c02ce41 + 96dbc8b commit d99bbe2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_layouts/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
<script src="{{ site.baseurl }}/assets/js/jquery.min.js"></script>
2020

21+
{% if site.adsense == "enabled" %}
22+
<script data-ad-client="{{ site.adsense-data-ad-client }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
23+
{% endif %}
24+
2125
</head>
2226

2327
{% if jekyll.environment == 'production' %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy