wp-go/templates/layout/base.gohtml

45 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-09-18 16:07:23 +00:00
{{ define "layout/base"}}
<!DOCTYPE html>
2022-09-21 13:49:14 +00:00
<html lang="zh-CN" class="no-js">
2022-09-18 16:07:23 +00:00
<head>
{{template "layout/head" .}}
{{block "head" .}}
{{end}}
</head>
<body>
2022-09-22 11:57:23 +00:00
{{template "svg"}}
2022-09-18 16:07:23 +00:00
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content">
</a>
2022-09-22 11:57:23 +00:00
<div id="sidebar" class="sidebar" style="position: relative; ">
2022-09-18 16:07:23 +00:00
<header id="masthead" class="site-header">
<div class="site-branding">
2022-09-22 11:57:23 +00:00
<h1 class="site-title">
<a href="/" rel="home">{{ .options.blogname }}</a>
</h1>
2022-09-18 16:07:23 +00:00
<p class="site-description">{{.options.blogdescription}}</p>
2022-09-22 11:57:23 +00:00
<button class="secondary-toggle">菜单和挂件</button>
2022-09-18 16:07:23 +00:00
</div><!-- .site-branding -->
</header>
2022-09-22 11:57:23 +00:00
<div id="secondary" class="secondary">
{{template "layout/sidebar" .}}
</div>
2022-09-18 16:07:23 +00:00
</div><!-- .sidebar -->
<div id="content" class="site-content">
{{block "content" .}}
{{end}}
</div>
<footer id="colophon" class="site-footer">
{{template "layout/footer" .}}
</footer>
</div>
2022-09-21 13:49:14 +00:00
{{ block "footer" .}}
{{end}}
2022-09-18 16:07:23 +00:00
</body>
</html>
{{ end }}