Skip to content

Commit

Permalink
add ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 23, 2024
1 parent 4394dd5 commit b178b53
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
16 changes: 15 additions & 1 deletion themes/aurora/layouts/partials/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,24 @@ <h1 class="page-title">{{ default $.Site.Title .Title }}</h1><br/>
</ul>
<span class="author-text-label">Page authored by</span>
{{ end }}
<!-- Bottom ad -->
<ins class="adsbygoogle" data-adtest="on" data-ad-test="on"
style="display:block"
data-ad-client="ca-pub-2151914442626247"
data-ad-slot="9668641531"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</article>

<!-- Table of Contents -->
<aside class="toc collapsed">
<div class="toc-header">Table of Contents</div>
{{ .TableOfContents }}
</aside>
<!-- Side ad -->
<ins class="adsbygoogle" data-adtest="on" data-ad-test="on"
style="display:block"
data-ad-client="ca-pub-2151914442626247"
data-ad-slot="6116409337"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</aside>
2 changes: 2 additions & 0 deletions themes/aurora/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
{{ $styles := resources.Get "scss/main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.Permalink }}">
<link rel="icon" href="{{ "favicon.ico" | relURL }}">

<script data-adbreak-test="on" async onload="adsLoaded()" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2151914442626247" crossorigin="anonymous"></script>
6 changes: 6 additions & 0 deletions themes/aurora/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
{{ $simplebar := resources.GetRemote "https://unpkg.com/simplebar@latest/dist/simplebar.min.js" }}
{{ $scripts := slice $externalLink $tabs $mobile $scroll $simplebar | resources.Concat "app.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $scripts.Permalink }}"></script>

<script>
function adsLoaded() {
(adsbygoogle = window.adsbygoogle || []).push({});
}
</script>

0 comments on commit b178b53

Please sign in to comment.