84 lines
4.1 KiB
HTML
84 lines
4.1 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?v=2">
|
|
<link rel="stylesheet" href="/static/css/list.css?v=4">
|
|
</head>
|
|
<body class="page-list">
|
|
{{template "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">{{if .pageHeading}}{{.pageHeading}}{{else}}全部短剧{{end}}</h1>
|
|
<p class="list-hero__desc">海量竖屏原创短剧,每日 18:00 上新</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="list-filters" aria-label="筛选">
|
|
<div class="filter-row">
|
|
<span class="filter-row__label only-pc">题材</span>
|
|
<div class="filter-row__options">
|
|
<a class="filter-chip{{if and (eq .themeSlug "") (eq .themeId 0)}} is-active{{end}}" href="{{allListURL "" 0 .updateStatus .sortType 1}}">全部</a>
|
|
{{range .themeList}}
|
|
<a class="filter-chip{{if or (and (ne $.themeSlug "") (eq $.themeSlug .Slug)) (and (gt $.themeId 0) (eq $.themeId .ID))}} is-active{{end}}" href="{{allListURL .Slug .ID $.updateStatus $.sortType 1}}">{{.Name}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="filter-row">
|
|
<span class="filter-row__label only-pc">状态</span>
|
|
<div class="filter-row__options">
|
|
<a class="filter-chip{{if eq .updateStatus 0}} is-active{{end}}" href="{{allListURL .themeSlug .themeId 0 .sortType 1}}">全部</a>
|
|
<a class="filter-chip{{if eq .updateStatus 1}} is-active{{end}}" href="{{allListURL .themeSlug .themeId 1 .sortType 1}}">连载中</a>
|
|
<a class="filter-chip{{if eq .updateStatus 2}} is-active{{end}}" href="{{allListURL .themeSlug .themeId 2 .sortType 1}}">已完结</a>
|
|
</div>
|
|
</div>
|
|
<div class="filter-row">
|
|
<span class="filter-row__label only-pc">排序</span>
|
|
<div class="filter-row__options">
|
|
<a class="filter-chip{{if eq .sortType 1}} is-active{{end}}" href="{{allListURL .themeSlug .themeId .updateStatus 1 1}}">最新</a>
|
|
<a class="filter-chip{{if eq .sortType 2}} is-active{{end}}" href="{{allListURL .themeSlug .themeId .updateStatus 2 1}}">最热</a>
|
|
<a class="filter-chip{{if eq .sortType 3}} is-active{{end}}" href="{{allListURL .themeSlug .themeId .updateStatus 3 1}}">收藏最多</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="list-body" aria-label="短剧列表">
|
|
<h2 class="visually-hidden">短剧列表</h2>
|
|
<p class="list-count">{{.listCount}}</p>
|
|
{{if .list}}
|
|
{{$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 $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 card__meta--ep">{{template "cardEpChip" $item}}<span class="card__meta-tags">{{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}}</span></p>
|
|
</article>
|
|
{{end}}
|
|
</div>
|
|
{{else}}
|
|
<p class="list-count">暂无短剧</p>
|
|
{{end}}
|
|
|
|
{{template "pagination" .}}
|
|
</section>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
</body>
|
|
</html>
|