Skip to content

Commit 25ea3b4

Browse files
committed
adding adsense
1 parent 9c6db78 commit 25ea3b4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,5 @@ jekyll-archives:
201201
category: /categories/:name/
202202

203203
future: true
204+
205+
google_adsense: '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5652820658752575" crossorigin="anonymous"></script>'

_includes/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,9 @@
9696
{% endunless %}
9797

9898
{% include metadata-hook.html %}
99+
100+
{% if site.google_adsense %}
101+
{{ site.google_adsense | safe }}
102+
{% endif %}
103+
99104
</head>

0 commit comments

Comments
 (0)