广告修改
This commit is contained in:
@@ -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}}>
|
||||
|
||||
Reference in New Issue
Block a user