blob: bac6eef8a5a71555cf893deb395f4f00f5cc1e09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{ if isset $.Site.Params "adsensepublisher" }}
{{ with .Params }}
<fieldset class="ad">
<legend><strong>#ad</strong></legend>
<amp-ad type="adsense"
{{ with .class }} class="{{ . }}"{{ end }}
{{ with .alt }} alt="{{ . }}"{{ end }}
{{ with .width }} width="{{ . }}"{{ end }}
{{ with .height }} height="{{ . }}"{{ end }}
{{ with .layout }} layout="{{ . }}"{{ end }}
{{ with .slot }} data-ad-slot="{{ . }}" {{ end }}
data-ad-client="{{ $.Site.Params.AdsensePublisher }}">
<div class="ad__fallback" fallback><p>{{ i18n "noAd" }}</p></div>
</amp-ad>
</fieldset>
{{ end }}
{{ end }}
|