You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
8.4 KiB
155 lines
8.4 KiB
{{ $favoriteKey := .Data.Term }}
|
|
{{ $favorite := where $.Site.Data.favorites "id" $favoriteKey }}
|
|
{{ $theFavorite := (index (where $.Site.Data.favorites "id" $favoriteKey ) 0) -}}
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="renderer" content="webkit" />
|
|
<meta name="force-rendering" content="webkit" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>{{ $theFavorite.name }} - {{ $.Site.Title }}</title>
|
|
<meta name="theme-color" content="#f9f9f9" />
|
|
{{- if $theFavorite.description }}
|
|
<meta name="description" content="{{ $theFavorite.description }}" />
|
|
{{ else }}
|
|
<meta name="description" content="{{ $theFavorite.name }}" />
|
|
{{- end }}
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="{{ $.Site.BaseURL }}{{$.Page.RelPermalink}}" />
|
|
<meta property="og:title" content="{{ $theFavorite.name }} - {{ $.Site.Title }}" />
|
|
{{- if $theFavorite.description }}
|
|
<meta property="og:description" content="{{ $theFavorite.description }}" />
|
|
{{ else }}
|
|
<meta property="og:description" content="{{ $theFavorite.name }}" />
|
|
{{- end }}
|
|
<meta property="og:image" content="{{ $.Site.Params.siteurl }}/{{ $.Site.Params.images.favicon }}" />
|
|
<meta property="og:site_name" content="{{ $.Site.Title }}" />
|
|
<link rel="shortcut icon" href="{{ $.Site.Params.siteurl }}/{{ $.Site.Params.images.favicon }}" />
|
|
<link rel="apple-touch-icon" href="{{ $.Site.Params.siteurl }}/{{ $.Site.Params.images.favicon }}" />
|
|
<meta name="robots" content="max-image-preview:large" />
|
|
<link rel='stylesheet' id='iconfont-css' href='{{ $.Site.Params.siteurl }}/assets/css/iconfont-3.03029.1.css' type='text/css' media='all'>
|
|
<link rel="stylesheet" id="font-awesome-css" href="{{ $.Site.Params.siteurl }}/assets/fontawesome-free-5.15.4-web/css/all.min.css" type="text/css" media="all" />
|
|
<link rel="stylesheet" id="font-awesome4-css" href="{{ $.Site.Params.siteurl }}/assets/fontawesome-free-5.15.4-web/css/v4-shims.min.css" type="text/css" media="all" />
|
|
<link rel='stylesheet' id='bootstrap-css' href='{{ $.Site.Params.siteurl }}/assets/css/bootstrap.min-4.3.1.css' type='text/css' media='all'>
|
|
<link rel="stylesheet" id="style-css" href="{{ $.Site.Params.siteurl }}/css/favorites.css?t=3333" type="text/css" media="all" />
|
|
<script type="text/javascript" src="{{ $.Site.Params.siteurl }}/assets/js/jquery.min-3.2.1.js" id="jquery-js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="main-content flex-fill">
|
|
{{ partial "navbar.html" . }}
|
|
<div class="container container-fluid customize-width">
|
|
{{/* 顶级菜单开始 */}}
|
|
{{ range where $favorite "top" true}}
|
|
{{ $topFavorite := (index $favorite 0) }}
|
|
<div class="card mb-4 mt-3 p-title">
|
|
<div class="card-body">
|
|
<h1 class="text-gray text-lg m-0">{{ $topFavorite.name }}</h1>
|
|
</div>
|
|
</div>
|
|
{{/* 子分类循环开始 */}}
|
|
{{ range $topFavorite.chils }}
|
|
<div class="d-flex flex-fill align-items-center mb-4">
|
|
<h4 class="text-gray text-lg m-0">
|
|
<i class="site-tag iconfont icon-tag icon-lg mr-1"> </i>{{ (index (where $.Site.Data.favorites "id" .) 0).name }}
|
|
</h4>
|
|
<div class="flex-fill"></div>
|
|
</div>
|
|
|
|
<div class="row ">
|
|
{{ with ($.Site.GetPage (printf "/%s" .)) }}
|
|
{{ range .Pages }}
|
|
<div class="url-card col-6 col-sm-6 col-md-4 col-lg-3 col-xl-3">
|
|
<div class="url-body default">
|
|
<a href="{{ .Permalink }}" class="card no-c mb-4" title="{{ .Title }}">
|
|
<div class="card-body url-content d-flex align-items-center">
|
|
<div class="url-img rounded-circle mr-2 d-flex align-items-center justify-content-center">
|
|
<img class="lazy unfancybox loaded" src="{{ .Params.cover }}" data-src="https://api.moyann.com/favicon/www.ihuaben.com.png" height="auto" alt="{{ .Title }}" data-was-processed="true" />
|
|
</div>
|
|
<div class="url-info flex-fill">
|
|
<div class="text-sm overflowClip_1">
|
|
<strong> {{ .Title }} </strong>
|
|
</div>
|
|
{{with .Params.Subtitle}}
|
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ . }}</p>
|
|
{{else}}
|
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ .Params.Summary }}</p>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<a href="{{ .Params.SiteUrl }}" target="_blank" rel="external nofollow" title="" class="togo text-center text-muted is-views" data-id="393" data-toggle="tooltip" data-placement="right" data-original-title="直达">
|
|
<i class="iconfont icon-goto"> </i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{/* 子分类循环结束 */}}
|
|
{{ end }}
|
|
{{/* 顶级菜单结束 */}}
|
|
|
|
{{/* 非顶级菜单开始 */}}
|
|
{{ range where $favorite "top" false}}
|
|
<div class="d-flex flex-fill align-items-center mb-4 mt-2">
|
|
<h4 class="text-gray text-lg m-0">
|
|
<i class="site-tag iconfont icon-tag icon-lg mr-1"> </i> {{ (index $favorite 0).name }}
|
|
</h4>
|
|
<div class="flex-fill"></div>
|
|
</div>
|
|
<div class="row">
|
|
{{ with ($.Site.GetPage (printf "/%s" $favoriteKey)) }}
|
|
{{ range .Pages }}
|
|
<div class="url-card col-6 col-sm-6 col-md-4 col-lg-3 col-xl-3">
|
|
<div class="url-body default">
|
|
<a href="{{ .Permalink }}" data-id="393" data-url="http://op.hhdmh.com" class="card no-c mb-4 site-393" title="{{ .Title}}">
|
|
<div class="card-body url-content d-flex align-items-center">
|
|
<div class="url-img rounded-circle mr-2 d-flex align-items-center justify-content-center">
|
|
<img class="lazy unfancybox loaded" src="{{ .Params.cover }}" data-src="https://api.moyann.com/favicon/op.hhdmh.com.png" height="auto" alt="海贼王漫画" data-was-processed="true" />
|
|
</div>
|
|
<div class="url-info flex-fill">
|
|
<div class="text-sm overflowClip_1">
|
|
<strong> {{ .Title}} </strong>
|
|
</div>
|
|
{{with .Params.Subtitle}}
|
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ . }}</p>
|
|
{{else}}
|
|
<p class="overflowClip_1 m-0 text-muted text-xs">{{ .Params.Summary }}</p>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<a href="{{ .Params.SiteUrl }}" target="_blank" rel="external nofollow" title="" class="togo text-center text-muted is-views" data-toggle="tooltip" data-placement="right" data-original-title="直达">
|
|
<i class="iconfont icon-goto"> </i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{/* 非顶级菜单结束 */}}
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<div id="footer-tools" class="d-flex flex-column">
|
|
<a href="javascript:" id="go-to-up" class="btn rounded-circle go-up m-1" rel="go-top">
|
|
<i class="iconfont icon-to-up"> </i>
|
|
</a>
|
|
<a href="https://ffq.la/bookmark/" class="btn rounded-circle m-1" data-toggle="tooltip" data-placement="left" title="" data-original-title="mini 书签">
|
|
<i class="iconfont icon-minipanel"> </i>
|
|
</a>
|
|
<a href="javascript:" id="switch-mode" class="btn rounded-circle switch-dark-mode m-1" data-toggle="tooltip" data-placement="left" title="" data-original-title="夜间模式">
|
|
<i class="mode-ico iconfont icon-night"> </i>
|
|
</a>
|
|
</div>
|
|
</footer>
|
|
|
|
<script type='text/javascript' src='https://cdn.staticfile.org/bootstrap/4.6.2/js/bootstrap.min.js' id='bootstrap-js'></script>
|
|
{{ partial "analytics.html" . }}
|
|
</body>
|
|
</html>
|
|
|
|
|