reorganized folder structure

This commit is contained in:
2026-03-25 12:28:35 -04:00
parent 0d4833f940
commit 1f0f0fd8fe
1426 changed files with 348 additions and 9678 deletions

View File

@@ -0,0 +1,29 @@
{{ if isset $.Site.Params "adsensepublisher" }}
{{ with .Params }}
{{ with .sticky }}<amp-sticky-ad layout="nodisplay">{{ end }}
<amp-ad type="adsense"
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-ad-client="{{ $.Site.Params.adsensePublisher }}"
{{ with .slot }}data-ad-slot="{{ . }}"{{ end }}>
</amp-ad>
{{ with .sticky }}</amp-sticky-ad>{{ end }}
{{ end }}
{{ else }}
{{ if isset . "context" }}
{{ $publisher := .context.Site.Params.adsensePublisher }}
{{ with .sticky }}<amp-sticky-ad layout="nodisplay">{{ end }}
<amp-ad type="adsense"
{{ with .width }}width="{{ . }}"{{ end }}
{{ with .height }}height="{{ . }}"{{ end }}
{{ with .layout }}layout="{{ . }}"{{ end }}
data-ad-client="{{ $publisher }}"
{{ with .slot }}data-ad-slot="{{ . }}"{{ end }}>
</amp-ad>
{{ with .sticky }}</amp-sticky-ad>{{ end }}
{{ end }}
{{ end }}