2022-09-18 14:06:27 +00:00
|
|
|
{{template "layout/base" .}}
|
2022-09-21 13:49:14 +00:00
|
|
|
|
2022-09-18 14:06:27 +00:00
|
|
|
{{define "content"}}
|
2022-09-19 09:39:00 +00:00
|
|
|
{{ if .post.PostContent}}
|
|
|
|
<div id="primary" class="content-area">
|
|
|
|
<main id="main" class="site-main">
|
|
|
|
<article id="post-{{.post.Id}}"
|
|
|
|
class="post-{{.post.Id}} post type-post status-publish format-standard hentry category-uncategorized">
|
2022-09-18 14:06:27 +00:00
|
|
|
|
2022-09-19 09:39:00 +00:00
|
|
|
<header class="entry-header">
|
|
|
|
<h1 class="entry-title">{{.post.PostTitle}}</h1></header><!-- .entry-header -->
|
2022-09-18 14:06:27 +00:00
|
|
|
|
2022-09-19 09:39:00 +00:00
|
|
|
<div class="entry-content">
|
|
|
|
{{.post.PostContent|unescaped}}
|
|
|
|
</div><!-- .entry-content -->
|
2022-09-18 14:06:27 +00:00
|
|
|
|
2022-09-19 09:39:00 +00:00
|
|
|
<footer class="entry-footer">
|
2022-09-18 14:06:27 +00:00
|
|
|
<span class="posted-on">
|
|
|
|
<span class="screen-reader-text">发布于 </span>
|
|
|
|
<a href="/p/{{.post.Id}}" rel="bookmark">
|
2022-09-18 16:16:40 +00:00
|
|
|
<time class="entry-date published updated"
|
|
|
|
datetime="{{.post.PostDateGmt}}">{{.post.PostDate|dateCh}}
|
2022-09-18 14:06:27 +00:00
|
|
|
</time>
|
|
|
|
</a>
|
|
|
|
</span>
|
2022-09-19 09:39:00 +00:00
|
|
|
{{if .post.CategoriesHtml}}
|
|
|
|
<span class="cat-links">
|
2022-09-18 14:06:27 +00:00
|
|
|
<span class="screen-reader-text">分类 </span>
|
|
|
|
{{.post.CategoriesHtml|unescaped}}
|
|
|
|
</span>
|
2022-09-19 09:39:00 +00:00
|
|
|
{{end}}
|
2022-09-18 14:06:27 +00:00
|
|
|
|
2022-09-19 09:39:00 +00:00
|
|
|
{{if .post.TagsHtml}}
|
|
|
|
<span class="tags-links">
|
2022-09-18 14:06:27 +00:00
|
|
|
<span class="screen-reader-text">标签 </span>
|
|
|
|
{{.post.TagsHtml|unescaped}}
|
|
|
|
</span>
|
2022-09-19 09:39:00 +00:00
|
|
|
{{end}}
|
|
|
|
</footer>
|
|
|
|
<!-- .entry-footer -->
|
|
|
|
|
|
|
|
</article><!-- #post-1 -->
|
|
|
|
|
2022-09-19 13:31:46 +00:00
|
|
|
{{ if .showComment}}
|
|
|
|
<div id="comments" class="comments-area">
|
|
|
|
{{ if gt .post.CommentCount 0}}
|
|
|
|
<h2 class="comments-title">《{{.post.PostTitle}}》上有{{.post.CommentCount}}条评论 </h2>
|
2022-09-21 13:49:14 +00:00
|
|
|
<ol class="comment-list">
|
|
|
|
{{.comments|unescaped}}
|
|
|
|
</ol>
|
2022-09-19 13:31:46 +00:00
|
|
|
|
|
|
|
{{end}}
|
|
|
|
{{if eq .post.CommentStatus "open"}}
|
|
|
|
<div id="respond" class="comment-respond">
|
|
|
|
<h3 id="reply-title" class="comment-reply-title">发表回复
|
|
|
|
<small>
|
|
|
|
<a rel="nofollow" id="cancel-comment-reply-link" href="/p/{{.post.Id}}#respond" style="display:none;">取消回复</a>
|
|
|
|
</small>
|
|
|
|
</h3>
|
|
|
|
<form action="/wp-comments-post.php" method="post" id="commentform" class="comment-form"
|
|
|
|
novalidate="">
|
|
|
|
<p class="comment-notes">
|
|
|
|
<span id="email-notes">您的电子邮箱地址不会被公开。</span>
|
|
|
|
<span class="required-field-message" aria-hidden="true">必填项已用<span class="required" aria-hidden="true">*</span>标注</span>
|
|
|
|
</p>
|
|
|
|
<p class="comment-form-comment">
|
|
|
|
<label for="comment">评论 <span class="required" aria-hidden="true">*</span></label>
|
|
|
|
<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required=""></textarea></p>
|
|
|
|
<p class="comment-form-author">
|
|
|
|
<label for="author">显示名称 <span class="required" aria-hidden="true">*</span></label>
|
|
|
|
<input id="author" name="author" type="text" value="" size="30" maxlength="245"
|
|
|
|
required=""></p>
|
|
|
|
<p class="comment-form-email">
|
|
|
|
<label for="email">电子邮箱地址 <span class="required" aria-hidden="true">*</span></label>
|
|
|
|
<input id="email" name="email" type="email" value="" size="30" maxlength="100"
|
|
|
|
aria-describedby="email-notes" required="">
|
|
|
|
</p>
|
|
|
|
<p class="comment-form-url"><label for="url">网站地址</label>
|
|
|
|
<input id="url" name="url" type="url" value="" size="30" maxlength="200"></p>
|
|
|
|
<p class="comment-form-cookies-consent">
|
|
|
|
<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes">
|
|
|
|
<label for="wp-comment-cookies-consent">在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。</label>
|
|
|
|
</p>
|
|
|
|
<p class="form-submit">
|
|
|
|
<input name="submit" type="submit" id="submit" class="submit" value="发表评论">
|
|
|
|
<input type="hidden" name="comment_post_ID" value="{{.post.Id}}" id="comment_post_ID">
|
|
|
|
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</div><!-- #respond -->
|
|
|
|
{{else}}
|
|
|
|
<p class="no-comments">评论已关闭。</p>
|
|
|
|
{{end}}
|
|
|
|
</div><!-- .comments-area -->
|
|
|
|
{{end}}
|
2022-09-19 09:39:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
<nav class="navigation post-navigation" aria-label="文章">
|
|
|
|
<h2 class="screen-reader-text">文章导航</h2>
|
|
|
|
|
|
|
|
<div class="nav-links">
|
|
|
|
{{if gt .prev.Id 0}}
|
|
|
|
<div class="nav-previous">
|
|
|
|
<a href="/p/{{.prev.Id}}" rel="prev">
|
|
|
|
<span class="meta-nav" aria-hidden="true">上一篇</span>
|
|
|
|
<span class="screen-reader-text">上篇文章:</span>
|
|
|
|
<span class="post-title">{{.prev.PostTitle}}</span></a>
|
2022-09-18 16:16:40 +00:00
|
|
|
</div>
|
2022-09-19 09:39:00 +00:00
|
|
|
{{end}}
|
|
|
|
{{if gt .next.Id 0}}
|
|
|
|
<div class="nav-next">
|
|
|
|
<a href="/p/{{.next.Id}}" rel="next">
|
|
|
|
<span class="meta-nav" aria-hidden="true">下一篇</span>
|
|
|
|
<span class="screen-reader-text">下篇文章:</span>
|
|
|
|
<span class="post-title">{{.next.PostTitle}}</span></a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</main><!-- .site-main -->
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{template "layout/empty"}}
|
|
|
|
{{end }}
|
2022-09-18 14:06:27 +00:00
|
|
|
{{end}}
|
2022-09-21 13:49:14 +00:00
|
|
|
|
|
|
|
{{define "footer"}}
|
|
|
|
<style>.wp-container-1 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-1 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-1 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style>
|
|
|
|
<style>.wp-container-2 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-2 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-2 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style>
|
|
|
|
<style>.wp-container-3 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-3 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-3 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style>
|
|
|
|
<style>.wp-container-4 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-4 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-4 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style>
|
|
|
|
<script src='/wp-content/themes/twentyfifteen/js/skip-link-focus-fix.js?ver=20141028' id='twentyfifteen-skip-link-focus-fix-js'></script>
|
|
|
|
<script src='/wp-includes/js/comment-reply.min.js?ver=6.0.2' id='comment-reply-js'></script>
|
|
|
|
<script id='twentyfifteen-script-js-extra'>
|
|
|
|
var screenReaderText = {"expand":"<span class=\"screen-reader-text\">\u5c55\u5f00\u5b50\u83dc\u5355<\/span>","collapse":"<span class=\"screen-reader-text\">\u6298\u53e0\u5b50\u83dc\u5355<\/span>"};
|
|
|
|
</script>
|
|
|
|
<script src='/wp-content/themes/twentyfifteen/js/functions.js?ver=20220524' id='twentyfifteen-script-js'></script>
|
|
|
|
|
|
|
|
{{end}}
|