From 1fb409af315118cfeff8da3e963652d5f085bbdc Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Tue, 10 Dec 2024 15:05:51 +0100 Subject: [PATCH] Add partial template for ad units --- layouts/mod-downloads/single.html | 3 +-- layouts/mod-mc-downloads/single.html | 3 +-- layouts/partials/ad.html | 2 ++ layouts/partials/update/downloads.html | 3 +-- layouts/partials/update/mcversions.html | 3 +-- 5 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 layouts/partials/ad.html diff --git a/layouts/mod-downloads/single.html b/layouts/mod-downloads/single.html index 0be67f3..57f83b5 100644 --- a/layouts/mod-downloads/single.html +++ b/layouts/mod-downloads/single.html @@ -31,8 +31,7 @@ {{ partial "title" . }}
- - + {{- partial "ad" "2172829624" -}} {{- .Content -}}
    {{ range where (where (.Site.Pages.ByParam "mcversion").Reverse "Section" .Params.mod) "Type" "mod-mc-downloads" }} diff --git a/layouts/mod-mc-downloads/single.html b/layouts/mod-mc-downloads/single.html index 361aecd..82a80e7 100644 --- a/layouts/mod-mc-downloads/single.html +++ b/layouts/mod-mc-downloads/single.html @@ -15,8 +15,7 @@ {{- end -}}
    - - + {{- partial "ad" "7921664533" -}} {{- .Content -}}
      {{- if $all -}} diff --git a/layouts/partials/ad.html b/layouts/partials/ad.html new file mode 100644 index 0000000..522426a --- /dev/null +++ b/layouts/partials/ad.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/update/downloads.html b/layouts/partials/update/downloads.html index 49a4175..0dd607a 100644 --- a/layouts/partials/update/downloads.html +++ b/layouts/partials/update/downloads.html @@ -1,7 +1,6 @@ {{- $scratch := newScratch -}} - - +{{- partial "ad" "9205195732" -}}