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

64 lines
2.4 KiB
Plaintext
Raw 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-01-15 09:30:13 +00:00
<head>
{{template "layout/head" .}}
{{block "head" .}}
{{end}}
</head>
2023-01-25 18:26:36 +00:00
<body class="{{.bodyClass}} wp-embed-responsive hfeed has-header-image has-sidebar colors-light">
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">
<div class="custom-header" style="margin-bottom: 0px;">
<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">
<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-01-17 15:18:31 +00:00
<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>
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
2023-01-25 18:26:36 +00:00
<footer id="colophon" class="site-footer">
<div class="wrap">
<div class="site-info">
<a href="https://cn.wordpress.org/" class="imprint">自豪地采用WordPress</a>
2023-01-15 09:30:13 +00:00
</div>
2023-01-25 18:26:36 +00:00
</div>
</footer>
2023-01-15 09:30:13 +00:00
</div>
{{template "layout/footer" .}}
</body>
</html>
{{ end }}