模板
This commit is contained in:
parent
78a9262e06
commit
147d382a1a
36
templates/layout/base.gohtml
Normal file
36
templates/layout/base.gohtml
Normal file
|
@ -0,0 +1,36 @@
|
|||
{{ define "layout/base"}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{{template "layout/head" .}}
|
||||
{{block "head" .}}
|
||||
{{end}}
|
||||
</head>
|
||||
<body>
|
||||
<div id="page" class="hfeed site">
|
||||
<a class="skip-link screen-reader-text" href="#content">
|
||||
|
||||
</a>
|
||||
|
||||
<div id="sidebar" class="sidebar" style="position: relative; bottom: 0;">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="site-branding">
|
||||
<h1 class="site-title"><a href="/" rel="home">{{ .options.blogname }}</a></h1>
|
||||
<p class="site-description">{{.options.blogdescription}}</p>
|
||||
</div><!-- .site-branding -->
|
||||
</header>
|
||||
{{template "layout/sidebar" .}}
|
||||
</div><!-- .sidebar -->
|
||||
<div id="content" class="site-content">
|
||||
{{block "content" .}}
|
||||
|
||||
{{end}}
|
||||
</div>
|
||||
<footer id="colophon" class="site-footer">
|
||||
{{template "layout/footer" .}}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
|
@ -1,36 +0,0 @@
|
|||
{{ define "layout/base"}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{{template "layout/head" .}}
|
||||
{{block "head" .}}
|
||||
{{end}}
|
||||
</head>
|
||||
<body>
|
||||
<div id="page" class="hfeed site">
|
||||
<a class="skip-link screen-reader-text" href="#content">
|
||||
|
||||
</a>
|
||||
|
||||
<div id="sidebar" class="sidebar" style="position: relative; bottom: 0;">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="site-branding">
|
||||
<h1 class="site-title"><a href="/" rel="home">{{ .options.blogname }}</a></h1>
|
||||
<p class="site-description">{{.options.blogdescription}}</p>
|
||||
</div><!-- .site-branding -->
|
||||
</header>
|
||||
{{template "layout/sidebar" .}}
|
||||
</div><!-- .sidebar -->
|
||||
<div id="content" class="site-content">
|
||||
{{block "content" .}}
|
||||
|
||||
{{end}}
|
||||
</div>
|
||||
<footer id="colophon" class="site-footer">
|
||||
{{template "layout/footer" .}}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
37
templates/layout/empty.gohtml
Normal file
37
templates/layout/empty.gohtml
Normal file
|
@ -0,0 +1,37 @@
|
|||
{{define "layout/empty"}}
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
{{if .search}}
|
||||
未找到
|
||||
{{else}}
|
||||
有点尴尬诶!该页无法显示。
|
||||
{{end}}
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
|
||||
<p>{{if .search}}
|
||||
抱歉,没有符合您搜索条件的结果。请换其它关键词再试。
|
||||
{{else}}
|
||||
这儿似乎什么都没有,试试搜索?
|
||||
{{end}}
|
||||
</p>
|
||||
<form role="search" method="get" class="search-form" action="https://www.xloyy.com/">
|
||||
<label>
|
||||
<span class="screen-reader-text">搜索:</span>
|
||||
<input type="search" class="search-field" placeholder="搜索…" value="{{.search}}" name="s">
|
||||
</label>
|
||||
<input type="submit" class="search-submit screen-reader-text" value="搜索">
|
||||
</form>
|
||||
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .no-results -->
|
||||
|
||||
</main><!-- .site-main -->
|
||||
</section>
|
||||
{{end}}
|
|
@ -1,37 +0,0 @@
|
|||
{{define "layout/empty"}}
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
{{if .search}}
|
||||
未找到
|
||||
{{else}}
|
||||
有点尴尬诶!该页无法显示。
|
||||
{{end}}
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
|
||||
<p>{{if .search}}
|
||||
抱歉,没有符合您搜索条件的结果。请换其它关键词再试。
|
||||
{{else}}
|
||||
这儿似乎什么都没有,试试搜索?
|
||||
{{end}}
|
||||
</p>
|
||||
<form role="search" method="get" class="search-form" action="https://www.xloyy.com/">
|
||||
<label>
|
||||
<span class="screen-reader-text">搜索:</span>
|
||||
<input type="search" class="search-field" placeholder="搜索…" value="{{.search}}" name="s">
|
||||
</label>
|
||||
<input type="submit" class="search-submit screen-reader-text" value="搜索">
|
||||
</form>
|
||||
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .no-results -->
|
||||
|
||||
</main><!-- .site-main -->
|
||||
</section>
|
||||
{{end}}
|
485
templates/layout/head.gohtml
Normal file
485
templates/layout/head.gohtml
Normal file
|
@ -0,0 +1,485 @@
|
|||
{{define "layout/head"}}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="max-image-preview:large">
|
||||
<title>{{ .title }}</title>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="/wp-content/themes/twentyfifteen/js/html5.js?ver=3.7.0"></script>
|
||||
<![endif]-->
|
||||
<script>(function (html) {
|
||||
html.className = html.className.replace(/\bno-js\b/, 'js')
|
||||
})(document.documentElement);</script>
|
||||
<style>
|
||||
img.wp-smiley,
|
||||
img.emoji {
|
||||
display: inline !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
height: 1em !important;
|
||||
width: 1em !important;
|
||||
margin: 0 0.07em !important;
|
||||
vertical-align: -0.1em !important;
|
||||
background: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
</style>
|
||||
<link rel='stylesheet' id='wp-block-library-css' href='/wp-includes/css/dist/block-library/style.min.css?ver=6.0.2'
|
||||
media='all'/>
|
||||
<style id='wp-block-library-theme-inline-css'>
|
||||
.wp-block-audio figcaption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .wp-block-audio figcaption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.wp-block-code {
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
font-family: Menlo, Consolas, monaco, monospace;
|
||||
padding: .8em 1em
|
||||
}
|
||||
|
||||
.wp-block-embed figcaption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .wp-block-embed figcaption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.blocks-gallery-caption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .blocks-gallery-caption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.wp-block-image figcaption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .wp-block-image figcaption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-top: 4px solid;
|
||||
border-bottom: 4px solid;
|
||||
margin-bottom: 1.75em;
|
||||
color: currentColor
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation, .wp-block-pullquote cite, .wp-block-pullquote footer {
|
||||
color: currentColor;
|
||||
text-transform: uppercase;
|
||||
font-size: .8125em;
|
||||
font-style: normal
|
||||
}
|
||||
|
||||
.wp-block-quote {
|
||||
border-left: .25em solid;
|
||||
margin: 0 0 1.75em;
|
||||
padding-left: 1em
|
||||
}
|
||||
|
||||
.wp-block-quote cite, .wp-block-quote footer {
|
||||
color: currentColor;
|
||||
font-size: .8125em;
|
||||
position: relative;
|
||||
font-style: normal
|
||||
}
|
||||
|
||||
.wp-block-quote.has-text-align-right {
|
||||
border-left: none;
|
||||
border-right: .25em solid;
|
||||
padding-left: 0;
|
||||
padding-right: 1em
|
||||
}
|
||||
|
||||
.wp-block-quote.has-text-align-center {
|
||||
border: none;
|
||||
padding-left: 0
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large, .wp-block-quote.is-style-large, .wp-block-quote.is-style-plain {
|
||||
border: none
|
||||
}
|
||||
|
||||
.wp-block-search .wp-block-search__label {
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
:where(.wp-block-group.has-background) {
|
||||
padding: 1.25em 2.375em
|
||||
}
|
||||
|
||||
.wp-block-separator.has-css-opacity {
|
||||
opacity: .4
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
border: none;
|
||||
border-bottom: 2px solid;
|
||||
margin-left: auto;
|
||||
margin-right: auto
|
||||
}
|
||||
|
||||
.wp-block-separator.has-alpha-channel-opacity {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
|
||||
width: 100px
|
||||
}
|
||||
|
||||
.wp-block-separator.has-background:not(.is-style-dots) {
|
||||
border-bottom: none;
|
||||
height: 1px
|
||||
}
|
||||
|
||||
.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {
|
||||
height: 2px
|
||||
}
|
||||
|
||||
.wp-block-table thead {
|
||||
border-bottom: 3px solid
|
||||
}
|
||||
|
||||
.wp-block-table tfoot {
|
||||
border-top: 3px solid
|
||||
}
|
||||
|
||||
.wp-block-table td, .wp-block-table th {
|
||||
padding: .5em;
|
||||
border: 1px solid;
|
||||
word-break: normal
|
||||
}
|
||||
|
||||
.wp-block-table figcaption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .wp-block-table figcaption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.wp-block-video figcaption {
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.is-dark-theme .wp-block-video figcaption {
|
||||
color: hsla(0, 0%, 100%, .65)
|
||||
}
|
||||
|
||||
.wp-block-template-part.has-background {
|
||||
padding: 1.25em 2.375em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0
|
||||
}
|
||||
</style>
|
||||
<style id='global-styles-inline-css'>
|
||||
body {
|
||||
--wp--preset--color--black: #000000;
|
||||
--wp--preset--color--cyan-bluish-gray: #abb8c3;
|
||||
--wp--preset--color--white: #fff;
|
||||
--wp--preset--color--pale-pink: #f78da7;
|
||||
--wp--preset--color--vivid-red: #cf2e2e;
|
||||
--wp--preset--color--luminous-vivid-orange: #ff6900;
|
||||
--wp--preset--color--luminous-vivid-amber: #fcb900;
|
||||
--wp--preset--color--light-green-cyan: #7bdcb5;
|
||||
--wp--preset--color--vivid-green-cyan: #00d084;
|
||||
--wp--preset--color--pale-cyan-blue: #8ed1fc;
|
||||
--wp--preset--color--vivid-cyan-blue: #0693e3;
|
||||
--wp--preset--color--vivid-purple: #9b51e0;
|
||||
--wp--preset--color--dark-gray: #111;
|
||||
--wp--preset--color--light-gray: #f1f1f1;
|
||||
--wp--preset--color--yellow: #f4ca16;
|
||||
--wp--preset--color--dark-brown: #352712;
|
||||
--wp--preset--color--medium-pink: #e53b51;
|
||||
--wp--preset--color--light-pink: #ffe5d1;
|
||||
--wp--preset--color--dark-purple: #2e2256;
|
||||
--wp--preset--color--purple: #674970;
|
||||
--wp--preset--color--blue-gray: #22313f;
|
||||
--wp--preset--color--bright-blue: #55c3dc;
|
||||
--wp--preset--color--light-blue: #e9f2f9;
|
||||
--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%);
|
||||
--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg, rgb(122, 220, 180) 0%, rgb(0, 208, 130) 100%);
|
||||
--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);
|
||||
--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg, rgba(255, 105, 0, 1) 0%, rgb(207, 46, 46) 100%);
|
||||
--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg, rgb(238, 238, 238) 0%, rgb(169, 184, 195) 100%);
|
||||
--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);
|
||||
--wp--preset--gradient--blush-light-purple: linear-gradient(135deg, rgb(255, 206, 236) 0%, rgb(152, 150, 240) 100%);
|
||||
--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 50%, rgb(107, 0, 62) 100%);
|
||||
--wp--preset--gradient--luminous-dusk: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);
|
||||
--wp--preset--gradient--pale-ocean: linear-gradient(135deg, rgb(255, 245, 203) 0%, rgb(182, 227, 212) 50%, rgb(51, 167, 181) 100%);
|
||||
--wp--preset--gradient--electric-grass: linear-gradient(135deg, rgb(202, 248, 128) 0%, rgb(113, 206, 126) 100%);
|
||||
--wp--preset--gradient--midnight: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);
|
||||
--wp--preset--gradient--dark-gray-gradient-gradient: linear-gradient(90deg, rgba(17, 17, 17, 1) 0%, rgba(42, 42, 42, 1) 100%);
|
||||
--wp--preset--gradient--light-gray-gradient: linear-gradient(90deg, rgba(241, 241, 241, 1) 0%, rgba(215, 215, 215, 1) 100%);
|
||||
--wp--preset--gradient--white-gradient: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(230, 230, 230, 1) 100%);
|
||||
--wp--preset--gradient--yellow-gradient: linear-gradient(90deg, rgba(244, 202, 22, 1) 0%, rgba(205, 168, 10, 1) 100%);
|
||||
--wp--preset--gradient--dark-brown-gradient: linear-gradient(90deg, rgba(53, 39, 18, 1) 0%, rgba(91, 67, 31, 1) 100%);
|
||||
--wp--preset--gradient--medium-pink-gradient: linear-gradient(90deg, rgba(229, 59, 81, 1) 0%, rgba(209, 28, 51, 1) 100%);
|
||||
--wp--preset--gradient--light-pink-gradient: linear-gradient(90deg, rgba(255, 229, 209, 1) 0%, rgba(255, 200, 158, 1) 100%);
|
||||
--wp--preset--gradient--dark-purple-gradient: linear-gradient(90deg, rgba(46, 34, 86, 1) 0%, rgba(66, 48, 123, 1) 100%);
|
||||
--wp--preset--gradient--purple-gradient: linear-gradient(90deg, rgba(103, 73, 112, 1) 0%, rgba(131, 93, 143, 1) 100%);
|
||||
--wp--preset--gradient--blue-gray-gradient: linear-gradient(90deg, rgba(34, 49, 63, 1) 0%, rgba(52, 75, 96, 1) 100%);
|
||||
--wp--preset--gradient--bright-blue-gradient: linear-gradient(90deg, rgba(85, 195, 220, 1) 0%, rgba(43, 180, 211, 1) 100%);
|
||||
--wp--preset--gradient--light-blue-gradient: linear-gradient(90deg, rgba(233, 242, 249, 1) 0%, rgba(193, 218, 238, 1) 100%);
|
||||
--wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');
|
||||
--wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');
|
||||
--wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');
|
||||
--wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');
|
||||
--wp--preset--duotone--midnight: url('#wp-duotone-midnight');
|
||||
--wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');
|
||||
--wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');
|
||||
--wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');
|
||||
--wp--preset--font-size--small: 13px;
|
||||
--wp--preset--font-size--medium: 20px;
|
||||
--wp--preset--font-size--large: 36px;
|
||||
--wp--preset--font-size--x-large: 42px;
|
||||
}
|
||||
|
||||
.has-black-color {
|
||||
color: var(--wp--preset--color--black) !important;
|
||||
}
|
||||
|
||||
.has-cyan-bluish-gray-color {
|
||||
color: var(--wp--preset--color--cyan-bluish-gray) !important;
|
||||
}
|
||||
|
||||
.has-white-color {
|
||||
color: var(--wp--preset--color--white) !important;
|
||||
}
|
||||
|
||||
.has-pale-pink-color {
|
||||
color: var(--wp--preset--color--pale-pink) !important;
|
||||
}
|
||||
|
||||
.has-vivid-red-color {
|
||||
color: var(--wp--preset--color--vivid-red) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-orange-color {
|
||||
color: var(--wp--preset--color--luminous-vivid-orange) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-amber-color {
|
||||
color: var(--wp--preset--color--luminous-vivid-amber) !important;
|
||||
}
|
||||
|
||||
.has-light-green-cyan-color {
|
||||
color: var(--wp--preset--color--light-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-vivid-green-cyan-color {
|
||||
color: var(--wp--preset--color--vivid-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-pale-cyan-blue-color {
|
||||
color: var(--wp--preset--color--pale-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-cyan-blue-color {
|
||||
color: var(--wp--preset--color--vivid-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-purple-color {
|
||||
color: var(--wp--preset--color--vivid-purple) !important;
|
||||
}
|
||||
|
||||
.has-black-background-color {
|
||||
background-color: var(--wp--preset--color--black) !important;
|
||||
}
|
||||
|
||||
.has-cyan-bluish-gray-background-color {
|
||||
background-color: var(--wp--preset--color--cyan-bluish-gray) !important;
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
background-color: var(--wp--preset--color--white) !important;
|
||||
}
|
||||
|
||||
.has-pale-pink-background-color {
|
||||
background-color: var(--wp--preset--color--pale-pink) !important;
|
||||
}
|
||||
|
||||
.has-vivid-red-background-color {
|
||||
background-color: var(--wp--preset--color--vivid-red) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-orange-background-color {
|
||||
background-color: var(--wp--preset--color--luminous-vivid-orange) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-amber-background-color {
|
||||
background-color: var(--wp--preset--color--luminous-vivid-amber) !important;
|
||||
}
|
||||
|
||||
.has-light-green-cyan-background-color {
|
||||
background-color: var(--wp--preset--color--light-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-vivid-green-cyan-background-color {
|
||||
background-color: var(--wp--preset--color--vivid-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-pale-cyan-blue-background-color {
|
||||
background-color: var(--wp--preset--color--pale-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-cyan-blue-background-color {
|
||||
background-color: var(--wp--preset--color--vivid-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-purple-background-color {
|
||||
background-color: var(--wp--preset--color--vivid-purple) !important;
|
||||
}
|
||||
|
||||
.has-black-border-color {
|
||||
border-color: var(--wp--preset--color--black) !important;
|
||||
}
|
||||
|
||||
.has-cyan-bluish-gray-border-color {
|
||||
border-color: var(--wp--preset--color--cyan-bluish-gray) !important;
|
||||
}
|
||||
|
||||
.has-white-border-color {
|
||||
border-color: var(--wp--preset--color--white) !important;
|
||||
}
|
||||
|
||||
.has-pale-pink-border-color {
|
||||
border-color: var(--wp--preset--color--pale-pink) !important;
|
||||
}
|
||||
|
||||
.has-vivid-red-border-color {
|
||||
border-color: var(--wp--preset--color--vivid-red) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-orange-border-color {
|
||||
border-color: var(--wp--preset--color--luminous-vivid-orange) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-amber-border-color {
|
||||
border-color: var(--wp--preset--color--luminous-vivid-amber) !important;
|
||||
}
|
||||
|
||||
.has-light-green-cyan-border-color {
|
||||
border-color: var(--wp--preset--color--light-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-vivid-green-cyan-border-color {
|
||||
border-color: var(--wp--preset--color--vivid-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-pale-cyan-blue-border-color {
|
||||
border-color: var(--wp--preset--color--pale-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-cyan-blue-border-color {
|
||||
border-color: var(--wp--preset--color--vivid-cyan-blue) !important;
|
||||
}
|
||||
|
||||
.has-vivid-purple-border-color {
|
||||
border-color: var(--wp--preset--color--vivid-purple) !important;
|
||||
}
|
||||
|
||||
.has-vivid-cyan-blue-to-vivid-purple-gradient-background {
|
||||
background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;
|
||||
}
|
||||
|
||||
.has-light-green-cyan-to-vivid-green-cyan-gradient-background {
|
||||
background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background {
|
||||
background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;
|
||||
}
|
||||
|
||||
.has-luminous-vivid-orange-to-vivid-red-gradient-background {
|
||||
background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;
|
||||
}
|
||||
|
||||
.has-very-light-gray-to-cyan-bluish-gray-gradient-background {
|
||||
background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;
|
||||
}
|
||||
|
||||
.has-cool-to-warm-spectrum-gradient-background {
|
||||
background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;
|
||||
}
|
||||
|
||||
.has-blush-light-purple-gradient-background {
|
||||
background: var(--wp--preset--gradient--blush-light-purple) !important;
|
||||
}
|
||||
|
||||
.has-blush-bordeaux-gradient-background {
|
||||
background: var(--wp--preset--gradient--blush-bordeaux) !important;
|
||||
}
|
||||
|
||||
.has-luminous-dusk-gradient-background {
|
||||
background: var(--wp--preset--gradient--luminous-dusk) !important;
|
||||
}
|
||||
|
||||
.has-pale-ocean-gradient-background {
|
||||
background: var(--wp--preset--gradient--pale-ocean) !important;
|
||||
}
|
||||
|
||||
.has-electric-grass-gradient-background {
|
||||
background: var(--wp--preset--gradient--electric-grass) !important;
|
||||
}
|
||||
|
||||
.has-midnight-gradient-background {
|
||||
background: var(--wp--preset--gradient--midnight) !important;
|
||||
}
|
||||
|
||||
.has-small-font-size {
|
||||
font-size: var(--wp--preset--font-size--small) !important;
|
||||
}
|
||||
|
||||
.has-medium-font-size {
|
||||
font-size: var(--wp--preset--font-size--medium) !important;
|
||||
}
|
||||
|
||||
.has-large-font-size {
|
||||
font-size: var(--wp--preset--font-size--large) !important;
|
||||
}
|
||||
|
||||
.has-x-large-font-size {
|
||||
font-size: var(--wp--preset--font-size--x-large) !important;
|
||||
}
|
||||
</style>
|
||||
<link rel='stylesheet' id='twentyfifteen-fonts-css'
|
||||
href='https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&subset=latin%2Clatin-ext&display=fallback'
|
||||
media='all'/>
|
||||
<link rel='stylesheet' id='genericons-css'
|
||||
href='/wp-content/themes/twentyfifteen/genericons/genericons.css?ver=20201208' media='all'/>
|
||||
<link rel='stylesheet' id='twentyfifteen-style-css' href='/wp-content/themes/twentyfifteen/style.css?ver=20201208'
|
||||
media='all'/>
|
||||
<link rel='stylesheet' id='twentyfifteen-block-style-css'
|
||||
href='/wp-content/themes/twentyfifteen/css/blocks.css?ver=20220524' media='all'/>
|
||||
<!--[if lt IE 9]>
|
||||
<link rel='stylesheet' id='twentyfifteen-ie-css' href='/wp-content/themes/twentyfifteen/css/ie.css?ver=20170916'
|
||||
media='all'/>
|
||||
<![endif]-->
|
||||
<!--[if lt IE 8]>
|
||||
<link rel='stylesheet' id='twentyfifteen-ie7-css' href='/wp-content/themes/twentyfifteen/css/ie7.css?ver=20141210'
|
||||
media='all'/>
|
||||
<![endif]-->
|
||||
<script src='/wp-includes/js/jquery/jquery.min.js?ver=3.6.0' id='jquery-core-js'></script>
|
||||
<script src='/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2' id='jquery-migrate-js'></script>
|
||||
{{end}}
|
File diff suppressed because one or more lines are too long
70
templates/posts/index.gohtml
Normal file
70
templates/posts/index.gohtml
Normal file
|
@ -0,0 +1,70 @@
|
|||
{{template "layout/base" .}}
|
||||
{{define "content" }}
|
||||
{{if .posts}}
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
{{if .header}}
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
{{if .search}}
|
||||
{{.header}}
|
||||
{{else}}
|
||||
{{.header |unescaped}}
|
||||
{{end}}
|
||||
</h1>
|
||||
</header>
|
||||
{{end}}
|
||||
{{ range $k,$v:=.posts}}
|
||||
<article id="post-{{$v.Id}}"
|
||||
class="post-{{$v.Id}} post type-post status-publish format-standard hentry category">
|
||||
|
||||
<header class="entry-header">
|
||||
<h2 class="entry-title">
|
||||
<a href="/p/{{$v.Id}}" rel="bookmark">{{$v.PostTitle}}</a>
|
||||
</h2>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
{{$v.PostContent|unescaped}}
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<span class="posted-on">
|
||||
<span class="screen-reader-text">发布于 </span>
|
||||
<a href="/p/{{$v.Id}}" rel="bookmark">
|
||||
<time class="entry-date published updated" datetime="{{$v.PostDateGmt}}">{{$v.PostDate|dateCh}}
|
||||
</time>
|
||||
</a>
|
||||
</span>
|
||||
{{if $v.CategoriesHtml}}
|
||||
<span class="cat-links">
|
||||
<span class="screen-reader-text">分类 </span>
|
||||
{{$v.CategoriesHtml|unescaped}}
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
{{if $v.TagsHtml}}
|
||||
<span class="tags-links">
|
||||
<span class="screen-reader-text">标签 </span>
|
||||
{{$v.TagsHtml|unescaped}}
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
<span class="comments-link">
|
||||
<a href="/p/1#comments">
|
||||
<span class="screen-reader-text">{{$v.PostTitle}}</span>有1条评论
|
||||
</a>
|
||||
</span>
|
||||
</footer><!-- .entry-footer -->
|
||||
|
||||
</article><!-- #post-{{$v.Id}} -->
|
||||
{{end}}
|
||||
|
||||
{{template "layout/page" .}}
|
||||
</main><!-- .site-main -->
|
||||
</div>
|
||||
{{else }}
|
||||
{{template "layout/empty" .}}
|
||||
{{end}}
|
||||
|
||||
{{end}}
|
|
@ -1,70 +0,0 @@
|
|||
{{template "layout/base" .}}
|
||||
{{define "content" }}
|
||||
{{if .posts}}
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
{{if .header}}
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
{{if .search}}
|
||||
{{.header}}
|
||||
{{else}}
|
||||
{{.header |unescaped}}
|
||||
{{end}}
|
||||
</h1>
|
||||
</header>
|
||||
{{end}}
|
||||
{{ range $k,$v:=.posts}}
|
||||
<article id="post-{{$v.Id}}"
|
||||
class="post-{{$v.Id}} post type-post status-publish format-standard hentry category">
|
||||
|
||||
<header class="entry-header">
|
||||
<h2 class="entry-title">
|
||||
<a href="/p/{{$v.Id}}" rel="bookmark">{{$v.PostTitle}}</a>
|
||||
</h2>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
{{$v.PostContent|unescaped}}
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<span class="posted-on">
|
||||
<span class="screen-reader-text">发布于 </span>
|
||||
<a href="/p/{{$v.Id}}" rel="bookmark">
|
||||
<time class="entry-date published updated" datetime="{{$v.PostDateGmt}}">{{$v.PostDate|dateCh}}
|
||||
</time>
|
||||
</a>
|
||||
</span>
|
||||
{{if $v.CategoriesHtml}}
|
||||
<span class="cat-links">
|
||||
<span class="screen-reader-text">分类 </span>
|
||||
{{$v.CategoriesHtml|unescaped}}
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
{{if $v.TagsHtml}}
|
||||
<span class="tags-links">
|
||||
<span class="screen-reader-text">标签 </span>
|
||||
{{$v.TagsHtml|unescaped}}
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
<span class="comments-link">
|
||||
<a href="/p/1#comments">
|
||||
<span class="screen-reader-text">{{$v.PostTitle}}</span>有1条评论
|
||||
</a>
|
||||
</span>
|
||||
</footer><!-- .entry-footer -->
|
||||
|
||||
</article><!-- #post-{{$v.Id}} -->
|
||||
{{end}}
|
||||
|
||||
{{template "layout/page" .}}
|
||||
</main><!-- .site-main -->
|
||||
</div>
|
||||
{{else }}
|
||||
{{template "layout/empty" .}}
|
||||
{{end}}
|
||||
|
||||
{{end}}
|
Loading…
Reference in New Issue
Block a user