{{ define "main" }}
<div id="data-pid" style="display:none">{{ .RelPermalink }}</div>
<article style="margin-bottom:1.5em">
<h1 class="post-title" itemprop="name headline" uk-scrollspy="cls: uk-animation-slide-top-small; delay: 200">{{ .Title }}</h1>
<div class="meta">
<span class="meta-item">作者: {{ .Site.Params.author | default "博主" }}</span>
<span class="meta-item">浏览: <span id="busuanzi_value_page_uv"></span></span>
<span class="meta-item">字数: <span id="word-count"></span></span>
<span class="meta-item meta-item-reading-time">阅读: 约 <span id="reading-time"></span> 分钟</span>
<br>
{{ with .Params.categories }}<span class="meta-item">分类:{{ range . }} <a href="/categories/{{ . }}">{{ . }}</a>{{ end }}</span>{{ end }}
{{ with .Params.tags }}<span class="meta-item">标签:{{ range . }} <a href="/tags/{{ . }}">{{ . }}</a>{{ end }}</span>{{ end }}
<span class="meta-item">发布: {{ .Date.Format "2006-01-02" }}</span>
</div>
<div class="post-content" id="post-writing" itemprop="articleBody">
{{ .Content }}
</div>
{{ if or .PrevInSection .NextInSection }}
<div class="post-nav" style="display:flex!important;visibility:visible!important;opacity:1!important;overflow:visible!important;height:auto!important;gap:0;margin:1.5em 0 0;padding-top:1em">
{{ with .PrevInSection }}
<a class="post-nav-prev" href="{{ .RelPermalink }}">
<span class="post-nav-label">←</span>
<span class="post-nav-title">{{ .Title }}</span>
</a>
{{ end }}
{{ with .NextInSection }}
<a class="post-nav-next" href="{{ .RelPermalink }}">
<span class="post-nav-title">{{ .Title }}</span>
<span class="post-nav-label">→</span>
</a>
{{ end }}
</div>
{{ end }}
<hr class="uk-divider-icon">
{{ if .Site.Params.twikoo }}
<div id="Comments"></div>
<div id="tcomment"></div>
{{ end }}
</article>

{{ end }}

{{ define "scripts" }}
{{ if .Site.Params.twikoo }}
<script>
function _waitTwikoo(){if(window.twikoo){_initTwikoo()}else{setTimeout(_waitTwikoo,50)}}_waitTwikoo();
</script>
{{ end }}
{{ end }}
