瀏覽代碼

refactor(baseof): added baseof template to replace template boilerplate

Russell J. Hewett 6 年之前
父節點
當前提交
1c2178bc44
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      layouts/_default/baseof.html

+ 21 - 0
layouts/_default/baseof.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="{{ site.LanguageCode | default "en-us" }}">
+
+{{ partial "site_head.html" . }}
+
+<body id="top" data-spy="scroll" data-target="{{ if or .IsHome (eq .Type "widget_page") }}#navbar-main{{else}}#TableOfContents{{end}}" data-offset="71" {{ if not (.Scratch.Get "light") }}class="dark"{{end}}>
+
+  {{ partial "search" . }}
+
+  {{ partial "navbar.html" . }}
+
+  {{ block "main" . }}{{ end }}
+
+  {{ partial "site_js.html" . }}
+
+  {{ partial "site_footer.html" . }}
+
+
+</body>
+
+</html>