广告修改

This commit is contained in:
谢宇宁
2026-10-28 17:27:22 +07:00
parent 4e98b85fd8
commit 3879f5a71c
23 changed files with 393 additions and 254 deletions
-10
View File
@@ -47,17 +47,7 @@
{{template "pagination" .}}
{{template "homeAdRow" dict "Ads" .appConfig.NineGridList "SlotKey" "topic_nine_grid" "SlotName" "专题横幅广告" "Label" "广告"}}
{{if .appConfig.BottomBanner}}
<div class="theme-index-ads" aria-label="广告">
{{range $ad := .appConfig.BottomBanner}}
<a class="theme-index-ad" {{if $ad.Link}}href="{{$ad.Link}}" target="_blank" rel="sponsored nofollow noopener noreferrer"{{else}}aria-disabled="true"{{end}} data-creative-id="{{$ad.ID}}">
<img class="lazy" src="/static/images/placeholder.png?v=2" data-src="{{$ad.Images}}" alt="{{$ad.Title}}" title="{{$ad.Title}}" width="758" height="94" />
</a>
{{end}}
</div>
{{end}}
</main>
{{template "footer" .}}
</body>