广告修改

This commit is contained in:
谢宇宁
2026-10-28 17:40:27 +07:00
parent 41a45c8975
commit 9c0695b305
22 changed files with 516 additions and 186 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
{{define "ads"}}
{{/* 入参为 advitise.detailbannerList 的切片,字段与接口一致:images / link / title
{{/* 详情横幅(后台位置 3,本站字段 videoTopList)的切片,字段:images / link / title
类名避免 ads/ad-slot:夸克等浏览器内置广告拦截会隐藏这类选择器 */}}
{{if .}}
<link rel="stylesheet" href="/static/css/promo.css?v=1">
<link rel="stylesheet" href="/static/css/promo.css?v=2">
<section class="promo-rail" aria-label="推荐">
{{range .}}
<a class="promo-card" href="{{if .Link}}{{.Link}}{{else}}#{{end}}"{{if .Link}} target="_blank" rel="sponsored nofollow noopener"{{end}}>