wp-go/app/theme/twentyseventeen/layout/base.gohtml

53 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2023-01-15 09:30:13 +00:00
{{ define "layout/base"}}
<!DOCTYPE html>
2023-01-19 06:12:59 +00:00
<html lang="{{getLang}}" class="no-js no-svg">
2023-02-24 16:56:52 +00:00
{{template "layout/head" .}}
2023-04-16 08:37:27 +00:00
<body class="{{.calBodyClass|exec}}">
2023-01-15 09:30:13 +00:00
{{template "svg"}}
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content">跳至内容</a>
<header id="masthead" class="site-header">
2023-06-12 15:08:46 +00:00
<div class="custom-header" style="margin-bottom: 0;">
2023-01-15 09:30:13 +00:00
<div class="custom-header-media">
2023-01-17 15:18:31 +00:00
<div id="wp-custom-header" class="wp-custom-header">
2023-01-25 18:26:36 +00:00
<img src="{{.HeaderImage.Path}}" width="{{.HeaderImage.Width}}" height="{{.HeaderImage.Height}}" alt="" {{if .HeaderImage.Srcset}}srcset="{{.HeaderImage.Srcset}}" {{end}} {{if .HeaderImage.Sizes}}sizes="{{.HeaderImage.Sizes}}" {{end}}>
2023-01-17 15:18:31 +00:00
</div>
</div>
2023-01-15 09:30:13 +00:00
<div class="site-branding" style="margin-bottom: 0px;">
<div class="wrap">
2023-04-24 13:51:43 +00:00
{{.customLogo|exec}}
2023-01-15 09:30:13 +00:00
<div class="site-branding-text">
2023-01-17 15:18:31 +00:00
<h1 class="site-title">
<a href="/" rel="home">{{ "blogname"| getOption }}</a>
</h1>
2023-01-15 09:30:13 +00:00
<p class="site-description">{{"blogdescription"| getOption}}</p>
</div><!-- .site-branding-text -->
2023-06-12 15:08:46 +00:00
{{if eq .scene "Home"}}
<a href="#content" class="menu-scroll-down">
<svg class="icon icon-arrow-right" aria-hidden="true" role="img">
<use href="#icon-arrow-right" xlink:href="#icon-arrow-right"></use>
</svg>
<span class="screen-reader-text">向下滚动到内容</span>
</a>
{{end}}
2023-01-15 09:30:13 +00:00
</div><!-- .wrap -->
</div><!-- .site-branding -->
</div><!-- .custom-header -->
</header>
2023-01-25 18:26:36 +00:00
{{block "content" .}}
2023-01-15 09:30:13 +00:00
2023-01-25 18:26:36 +00:00
{{end}}
2023-01-15 09:30:13 +00:00
</div>
{{template "layout/footer" .}}
</body>
</html>
{{ end }}