2022-06-09 09:12:22 +08:00
|
|
|
{{- .Scratch.Set "postsCount" (len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)) -}}
|
|
|
|
{{- .Scratch.Set "catsCount" (len .Site.Taxonomies.categories) -}}
|
|
|
|
{{- .Scratch.Set "tagsCount" (len .Site.Taxonomies.tags) -}}
|
2022-05-25 11:02:05 +08:00
|
|
|
{{- $vendors := .Site.Data.resources.vendors -}}
|
2022-06-02 12:13:16 +08:00
|
|
|
{{- $pluginVen := .Site.Params.vendors.plugins -}}
|
2022-05-25 11:02:05 +08:00
|
|
|
{{- $pluginCDN := index $vendors $pluginVen -}}
|
|
|
|
{{- .Scratch.Set "pluginCDN" $pluginCDN -}}
|
2022-05-03 18:39:03 +08:00
|
|
|
<!DOCTYPE html>
|
2022-06-08 14:51:30 +08:00
|
|
|
<html lang="{{ .Site.LanguageCode }}">
|
2022-05-05 11:34:46 +08:00
|
|
|
|
2022-05-10 17:11:04 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width">
|
2022-05-24 21:39:45 +08:00
|
|
|
{{ hugo.Generator }}
|
2022-06-02 12:13:16 +08:00
|
|
|
<link rel="icon" type="image/x-icon" href="{{ .Site.Params.favicon.icon }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.Params.favicon.small }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.favicon.medium }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.favicon.appleTouchIcon }}">
|
2022-05-22 19:40:41 +08:00
|
|
|
<noscript>
|
|
|
|
<link rel="stylesheet" href="/css/noscript.css">
|
|
|
|
</noscript>
|
2022-05-10 17:11:04 +08:00
|
|
|
</head>
|
2022-05-04 16:17:20 +08:00
|
|
|
|
2022-05-10 17:11:04 +08:00
|
|
|
<div class="headband"></div>
|
2022-05-04 16:17:20 +08:00
|
|
|
<main class="main">
|
|
|
|
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
|
2022-05-22 19:40:41 +08:00
|
|
|
<div class="header-inner">
|
|
|
|
</div>
|
|
|
|
<!-- Sidebar -->
|
2022-06-02 12:13:16 +08:00
|
|
|
{{- if ne .Site.Params.sidebar.display "remove" }}
|
2022-06-01 11:49:47 +08:00
|
|
|
{{- partial "sidebar.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
{{- end }}
|
2022-05-04 16:17:20 +08:00
|
|
|
</header>
|
2022-05-22 19:40:41 +08:00
|
|
|
<!-- Widgets -->
|
2022-06-01 14:26:52 +08:00
|
|
|
{{ partial "widgets.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
<!-- Submenu,Content,Comment -->
|
2022-06-05 16:14:17 +08:00
|
|
|
{{- if .IsPage }}
|
|
|
|
{{- partial "comments.html" . }}
|
|
|
|
{{- end }}
|
2022-05-04 16:17:20 +08:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="footer">
|
2022-05-22 19:40:41 +08:00
|
|
|
<div class="footer-inner">
|
|
|
|
</div>
|
2022-05-04 16:17:20 +08:00
|
|
|
</footer>
|
2022-05-25 11:02:05 +08:00
|
|
|
|
2022-06-01 14:42:03 +08:00
|
|
|
{{- partial "scripts" . }}
|
2022-05-04 16:17:20 +08:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|