2023-01-01 21:12:58 +08:00
|
|
|
{{ range $k, $v := (partialCached "init.html" .) }}
|
|
|
|
{{ $.Scratch.Set $k $v }}
|
|
|
|
{{ end }}
|
2022-11-06 18:23:55 +08:00
|
|
|
{{ $isComment := .Params.comment.enable | default .Site.Params.comments.enable }}
|
|
|
|
{{ .Scratch.Set "isComment" $isComment }}
|
2022-05-21 17:47:26 +08:00
|
|
|
<!DOCTYPE html>
|
2022-10-23 16:05:23 +08:00
|
|
|
<html lang="{{ .Site.LanguageCode }}" data-theme="{{ .Scratch.Get "theme" }}">
|
2022-05-22 19:40:41 +08:00
|
|
|
|
|
|
|
<head>
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ partial "head.html" . }}
|
2022-06-07 18:16:40 +08:00
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
2022-05-22 19:40:41 +08:00
|
|
|
<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">
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ partial "header.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
<!-- Sidebar -->
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ if ne .Site.Params.sidebar.display "remove" }}
|
|
|
|
{{ partial "sidebar.html" . }}
|
|
|
|
{{ end }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</header>
|
|
|
|
<!-- Widgets -->
|
2022-06-01 14:26:52 +08:00
|
|
|
{{ partial "widgets.html" . }}
|
2022-06-07 18:16:40 +08:00
|
|
|
<div class="main-inner {{ block "main_inner_class" . }}{{ end }}">
|
2022-05-22 19:40:41 +08:00
|
|
|
<!-- Submenu,Content,Comment -->
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ block "main" . }}{{ end }}
|
|
|
|
{{ if and .IsPage $isComment }}
|
|
|
|
{{ partialCached "comments.html" . }}
|
|
|
|
{{ end }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="footer-inner">
|
2024-07-20 21:36:08 +08:00
|
|
|
{{ partial "footer.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</div>
|
|
|
|
</footer>
|
2022-05-25 11:02:05 +08:00
|
|
|
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ partial "scripts.html" . }}
|
2022-05-22 19:40:41 +08:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|