Skip to content

Commit

Permalink
make aside ad visible and optimize script
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 25, 2024
1 parent b178b53 commit 3f204ba
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions themes/aurora/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ $toc-width: 220px;
font-size: 1.13rem;
}

ins {
min-height: 600px;
}
@media only screen and (max-width: 1320px){
ins {
min-height: 160px;
margin-top: 8px;
}
}

ins {
border: red dashed 1px;
}

// ------------------------ //
// Import other SASS files //
Expand Down
2 changes: 1 addition & 1 deletion themes/aurora/layouts/partials/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1 class="page-title">{{ default $.Site.Title .Title }}</h1><br/>
<span class="author-text-label">Page authored by</span>
{{ end }}
<!-- Bottom ad -->
<ins class="adsbygoogle" data-adtest="on" data-ad-test="on"
<ins class="adsbygoogle" data-adtest="on" data-ad-test="on"
style="display:block"
data-ad-client="ca-pub-2151914442626247"
data-ad-slot="9668641531"
Expand Down
2 changes: 0 additions & 2 deletions themes/aurora/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@
{{ $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>
3 changes: 2 additions & 1 deletion themes/aurora/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
function adsLoaded() {
(adsbygoogle = window.adsbygoogle || []).push({});
}
</script>
</script>
<script data-adbreak-test="on" async onload="adsLoaded()" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2151914442626247" crossorigin="anonymous"></script>

0 comments on commit 3f204ba

Please sign in to comment.