2017-08-27 14:38:42 +00:00
|
|
|
{{ define "content" -}}
|
|
|
|
<article class="post">
|
|
|
|
<!-- post-header -->
|
|
|
|
<header class="post-header">
|
|
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
|
|
|
|
|
|
<div class="post-meta">
|
2017-09-24 16:56:55 +00:00
|
|
|
<span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
|
2017-08-27 14:38:42 +00:00
|
|
|
{{ with .Params.categories -}}
|
|
|
|
<div class="post-category">
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ range . -}}
|
2018-01-30 13:26:46 +00:00
|
|
|
<a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ end -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
</div>
|
|
|
|
{{- end }}
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- if .Site.Params.moreMeta }}
|
|
|
|
<span class="more-meta"> {{ T "wordCount" .WordCount }} </span>
|
|
|
|
<span class="more-meta"> {{ T "readingTime" .ReadingTime }} </span>
|
2017-09-11 15:15:13 +00:00
|
|
|
{{- end }}
|
2017-12-20 13:33:05 +00:00
|
|
|
{{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.pagePV -}}
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ $valueSpan := printf `<span id="busuanzi_value_page_pv"><img src="%s" alt="spinner.svg"/></span>` ("img/spinner.svg" | relURL) -}}
|
|
|
|
<span id="busuanzi_container_page_pv" class="more-meta"> {{ printf (T "pagePV") $valueSpan | safeHTML }} </span>
|
2017-12-20 13:33:05 +00:00
|
|
|
{{- end }}
|
2017-08-27 14:38:42 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- TOC -->
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- partial "post/toc.html" . -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
|
2018-05-31 16:06:14 +00:00
|
|
|
<!-- Outdated Info Warning -->
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- partial "post/outdated-info-warning.html" . -}}
|
2018-05-31 16:06:14 +00:00
|
|
|
|
2017-08-27 14:38:42 +00:00
|
|
|
<!-- Content -->
|
|
|
|
<div class="post-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Copyright -->
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- partial "post/copyright.html" . -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
|
|
|
|
<!-- Reward -->
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- partial "post/reward.html" . -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
|
|
|
|
<footer class="post-footer">
|
|
|
|
{{ with .Params.tags -}}
|
|
|
|
<div class="post-tags">
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ range . -}}
|
2021-01-19 13:36:26 +00:00
|
|
|
<a href="{{ "tags" | relLangURL }}/{{ . | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{ else }}/{{ end }}">{{ . }}</a>
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ end -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
</div>
|
2018-07-09 17:41:34 +00:00
|
|
|
{{- end -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
|
|
|
|
<!-- Post Pagination -->
|
|
|
|
<nav class="post-nav">
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ with .NextInSection -}}
|
2019-09-08 14:42:48 +00:00
|
|
|
<a class="prev" href="{{ .RelPermalink }}">
|
2017-08-27 14:38:42 +00:00
|
|
|
<i class="iconfont icon-left"></i>
|
|
|
|
<span class="prev-text nav-default">{{ .Title }}</span>
|
2018-01-31 14:07:50 +00:00
|
|
|
<span class="prev-text nav-mobile">{{ T "prevPost" }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</a>
|
|
|
|
{{- end }}
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ with .PrevInSection -}}
|
2019-09-08 14:42:48 +00:00
|
|
|
<a class="next" href="{{ .RelPermalink }}">
|
2017-08-27 14:38:42 +00:00
|
|
|
<span class="next-text nav-default">{{ .Title }}</span>
|
2018-05-31 16:36:52 +00:00
|
|
|
<span class="next-text nav-mobile">{{ T "nextPost" }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
<i class="iconfont icon-right"></i>
|
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
</nav>
|
|
|
|
</footer>
|
|
|
|
</article>
|
2017-11-14 15:27:19 +00:00
|
|
|
{{- end }}
|