2022-05-22 19:40:41 +08:00
|
|
|
{{- $P := .Site.Params -}}
|
|
|
|
{{- $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 -}}
|
|
|
|
{{- $pluginVen := $P.vendors.plugins -}}
|
|
|
|
{{- $pluginCDN := index $vendors $pluginVen -}}
|
|
|
|
{{- .Scratch.Set "pluginCDN" $pluginCDN -}}
|
2022-05-25 15:44:10 +08:00
|
|
|
{{ $posts := len .Site.RegularPages }}
|
|
|
|
{{- .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-05-22 19:40:41 +08:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{ $P.favicon.icon }}">
|
|
|
|
<link rel="icon" type="image/x-icon" href="{{ $P.favicon.icon }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ $P.favicon.small }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ $P.favicon.medium }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ $P.favicon.appleTouchIcon }}">
|
|
|
|
{{- partial "head.html" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
|
|
|
<title>{{ .Title | default .Site.Title }}</title>
|
|
|
|
<noscript>
|
|
|
|
<link rel="stylesheet" href="/css/noscript.css">
|
|
|
|
</noscript>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body itemscope itemtype="http://schema.org/WebPage" {{ if $P.motion.enable }} class="use-motion" {{ end }}>
|
|
|
|
<div class="headband"></div>
|
|
|
|
<main class="main">
|
|
|
|
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
|
|
|
|
<div class="header-inner">
|
2022-05-25 11:02:05 +08:00
|
|
|
{{- partial "header" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
<!-- Sidebar -->
|
|
|
|
{{- if ne $P.sidebar.display "remove" }}
|
2022-05-27 16:25:56 +08:00
|
|
|
{{- partial "sidebar" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
2022-05-22 19:40:41 +08:00
|
|
|
{{- end }}
|
|
|
|
</header>
|
|
|
|
<!-- Widgets -->
|
|
|
|
<div class="main-inner">
|
|
|
|
<!-- Submenu,Content,Comment -->
|
|
|
|
{{- block "main" . }}{{- end }}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="footer-inner">
|
2022-05-28 12:53:13 +08:00
|
|
|
{{- partial "footer" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
</footer>
|
2022-05-25 11:02:05 +08:00
|
|
|
|
|
|
|
{{- partial "scripts" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|