89 lines
3.9 KiB
HTML
89 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.metaTitle}}</title>
|
|
{{template "seoCommon" .}}
|
|
<link rel="stylesheet" href="/static/css/base.css">
|
|
<link rel="stylesheet" href="/static/css/list.css?v=3">
|
|
<link rel="stylesheet" href="/static/css/recentlyAdded.css">
|
|
</head>
|
|
<body class="page-list page-recently">
|
|
{{template "header" .}}
|
|
|
|
<header class="page-subheader only-h5" aria-label="最近上新顶栏">
|
|
<a class="page-subheader__btn" href="javascript:history.back()" aria-label="返回">
|
|
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/chevron-left.svg" alt="返回">
|
|
</a>
|
|
<div class="page-subheader__title">最近上新</div>
|
|
<a class="page-subheader__btn" href="/search-mobile" aria-label="搜索">
|
|
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/search_h5.svg" alt="搜索">
|
|
</a>
|
|
</header>
|
|
|
|
<div class="page list-page">
|
|
<main class="main">
|
|
<section class="list-hero" aria-label="最近上新">
|
|
<div class="list-hero__intro">
|
|
<p class="eyebrow list-hero__eyebrow">
|
|
<span class="eyebrow__bar" aria-hidden="true"></span>
|
|
最近上新
|
|
</p>
|
|
<h1 class="list-hero__title">最近上新</h1>
|
|
<p class="list-hero__desc">{{if .seoInfo.Description}}{{.seoInfo.Description}}{{else}}按上线时间排序,每日 18:00 更新{{end}}</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="list-body" aria-label="上新列表">
|
|
<h2 class="visually-hidden">最近上新作品列表</h2>
|
|
<p class="list-count">{{.listCount}}</p>
|
|
{{if .list}}
|
|
{{$adIdxPc := 0}}
|
|
{{$adIdxH5 := 0}}
|
|
{{$total := len .list}}
|
|
<div class="grid--list">
|
|
{{range $i, $item := .list}}
|
|
<article class="card card--list">
|
|
<a class="card__cover lazy" href="{{playURL $item.Slug $item.ID}}" style="{{cssCoverPlaceholder}}" data-src="{{$item.Cover}}">
|
|
{{if eq $item.UpdateStatus 1}}
|
|
<span class="card__ep">连载中</span>
|
|
{{else if $item.TotalEpisode}}
|
|
<span class="card__ep">全 {{$item.TotalEpisode}} 集</span>
|
|
{{else}}
|
|
<span class="card__ep">{{updateStatusText $item.UpdateStatus}}</span>
|
|
{{end}}
|
|
{{if $item.IsNew}}<span class="badge badge--new">上新</span>{{else if $item.IsFeatured}}<span class="badge badge--hot">爆剧</span>{{else if eq $item.Anchor "原创"}}<span class="badge badge--original">原创</span>{{end}}
|
|
</a>
|
|
<h3 class="card__title"><a href="{{playURL $item.Slug $item.ID}}">{{if $item.PlayName}}{{$item.PlayName}}{{else}}{{$item.Title}}{{end}}</a></h3>
|
|
<p class="card__meta">{{range $ti, $tag := cardTags $item}}{{if $ti}} {{end}}{{if $tag.URL}}<a href="{{$tag.URL}}" {{externalLinkAttrs $tag.URL}}>{{$tag.Name}}</a>{{else}}{{$tag.Name}}{{end}}{{end}}</p>
|
|
</article>
|
|
{{$n := add $i 1}}
|
|
{{if and $.appConfig.DetailBannerList (lt $n $total)}}
|
|
{{if eq (mod $n 12) 0}}
|
|
<div class="list-mid-promo only-pc">
|
|
{{template "ads" (adSlice $.appConfig.DetailBannerList $adIdxPc 2)}}
|
|
</div>
|
|
{{$adIdxPc = add $adIdxPc 2}}
|
|
{{end}}
|
|
{{if eq (mod $n 6) 0}}
|
|
<div class="list-mid-promo only-h5">
|
|
{{template "ads" (adSlice $.appConfig.DetailBannerList $adIdxH5 2)}}
|
|
</div>
|
|
{{$adIdxH5 = add $adIdxH5 2}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
{{template "pagination" .}}
|
|
{{else}}
|
|
<p class="list-count">暂无上新短剧</p>
|
|
{{end}}
|
|
</section>
|
|
</main>
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
</body>
|
|
</html>
|