Skip to content

Commit

Permalink
Add partial template for ad units
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 10, 2024
1 parent 7507e60 commit 1fb409a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions layouts/mod-downloads/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
{{ partial "title" . }}
<section class="padding20 no-padding-left no-padding-right">
<div class="container">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5218363098774955" data-ad-slot="2172829624" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
{{- partial "ad" "2172829624" -}}
{{- .Content -}}
<ul class="mcversions">
{{ range where (where (.Site.Pages.ByParam "mcversion").Reverse "Section" .Params.mod) "Type" "mod-mc-downloads" }}
Expand Down
3 changes: 1 addition & 2 deletions layouts/mod-mc-downloads/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
{{- end -}}
<section class="padding20 no-padding-left no-padding-right">
<div class="container">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5218363098774955" data-ad-slot="7921664533" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
{{- partial "ad" "7921664533" -}}
{{- .Content -}}
<ul class="wurst-grid">
{{- if $all -}}
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/ad.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5218363098774955" data-ad-slot="{{ . }}" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
3 changes: 1 addition & 2 deletions layouts/partials/update/downloads.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- $scratch := newScratch -}}

<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5218363098774955" data-ad-slot="9205195732" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
{{- partial "ad" "9205195732" -}}

<noscript>
WARNING: JavaScript is disabled. The download buttons might not work properly until you enable JavaScript.
Expand Down
3 changes: 1 addition & 2 deletions layouts/partials/update/mcversions.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
{{- end -}}.
</p>

<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5218363098774955" data-ad-slot="4418061113" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
{{- partial "ad" "4418061113" -}}

0 comments on commit 1fb409a

Please sign in to comment.