广告点击添加

This commit is contained in:
谢宇宁
2026-10-29 16:41:17 +07:00
parent 9c0695b305
commit 8be05db0e6
12 changed files with 194 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<span class="app-icons__label">推广</span>
<div class="app-icons__row">
{{range .Items}}
<a class="app-icons__item" href="{{if .Link}}{{.Link}}{{else}}#{{end}}"{{if .Link}} target="_blank" rel="sponsored nofollow noopener"{{end}} title="{{.Title}}">
<a class="app-icons__item" href="{{if .Link}}{{.Link}}{{else}}#{{end}}"{{if .Link}} target="_blank" rel="sponsored nofollow noopener"{{end}} title="{{.Title}}"{{if .CanReportClick}} data-ads-id="{{.AdsID}}" data-ads-location="{{.Location}}"{{end}}>
<img decoding="async" class="lazy app-icons__img" src="/static/images/placeholder.png?v=2" data-src="{{.Images}}" data-lazy-eager="1" alt="{{if .Title}}{{.Title}}{{else}}推荐{{end}}">
<span class="app-icons__name">{{if .Title}}{{.Title}}{{else}}推荐{{end}}</span>
</a>