2022-05-22 19:40:41 +08:00
|
|
|
{{- $lang := replaceRE "-([a-z]+)" (upper (substr .Site.Language -3)) .Site.Language -}}
|
|
|
|
{{- .Scratch.Set "lang" $lang -}}
|
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-06-01 11:44:06 +08:00
|
|
|
{{ $posts := len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
|
2022-05-25 15:44:10 +08:00
|
|
|
{{- .Scratch.Set "posts" $posts -}}
|
2022-05-21 17:47:26 +08:00
|
|
|
<!DOCTYPE html>
|
2022-05-22 19:40:41 +08:00
|
|
|
<html lang="{{ $lang }}">
|
|
|
|
|
|
|
|
<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="shortcut icon" type="image/x-icon" href="{{ .Site.Params.favicon.icon }}">
|
|
|
|
<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-31 21:50:35 +08:00
|
|
|
{{- partial "head.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
<title>{{ .Title | default .Site.Title }}</title>
|
|
|
|
<noscript>
|
|
|
|
<link rel="stylesheet" href="/css/noscript.css">
|
|
|
|
</noscript>
|
|
|
|
</head>
|
|
|
|
|
2022-06-02 12:13:16 +08:00
|
|
|
<body itemscope itemtype="http://schema.org/WebPage" {{ if .Site.Params.motion.enable }} class="use-motion" {{ end }}>
|
2022-05-22 19:40:41 +08:00
|
|
|
<div class="headband"></div>
|
|
|
|
<main class="main">
|
|
|
|
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
|
|
|
|
<div class="header-inner">
|
2022-06-01 11:44:06 +08:00
|
|
|
{{- partial "header.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</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 }}
|
|
|
|
</header>
|
|
|
|
<!-- Widgets -->
|
2022-06-01 14:26:52 +08:00
|
|
|
{{ partial "widgets.html" . }}
|
2022-06-02 12:13:16 +08:00
|
|
|
<div class="main-inner {{ block "main_class" . }}{{ end }} posts-expand">
|
2022-05-22 19:40:41 +08:00
|
|
|
<!-- Submenu,Content,Comment -->
|
2022-06-01 17:06:27 +08:00
|
|
|
{{- block "main" . }}{{- end }}
|
2022-06-05 16:14:17 +08:00
|
|
|
{{- if .IsPage }}
|
|
|
|
{{- partial "comments.html" . }}
|
|
|
|
{{- end }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="footer-inner">
|
2022-06-01 14:37:40 +08:00
|
|
|
{{- partial "footer" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
</footer>
|
2022-05-25 11:02:05 +08:00
|
|
|
|
2022-06-01 14:42:03 +08:00
|
|
|
{{- partial "scripts" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|