mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 07:18:55 +00:00
a314b017a7
* new: i18n translation support * new: Traditional Chinese, Japanese, and Korean translations * upd: casing
45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
{{ define "content"}}
|
|
<div class="res-cons">
|
|
{{ partial "toc" . }}
|
|
<article class="post">
|
|
<header>
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
</header>
|
|
{{ partial "post-meta.html" . }}
|
|
{{ if .Site.Params.busuanzi }}
|
|
<div class="post-meta">
|
|
<span id="busuanzi_container_page_pv"> |
|
|
<span id="busuanzi_value_page_pv"></span> <span>{{ i18n "busuanzi" }}</span>
|
|
</span>
|
|
</div>
|
|
{{ end }}
|
|
{{ if .Params.toc }}
|
|
<div class="clear" style="display: none">
|
|
<div class="toc-article">
|
|
<div class="toc-title">{{ i18n "toc" }}</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
<div class="post-content">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ partial "copyright" .}}
|
|
|
|
{{ partial "related" . }}
|
|
|
|
<div class="post-meta meta-tags">
|
|
{{ if and (isset .Params "tags") .Params.tags }}
|
|
<ul class="clearfix">
|
|
{{ range .Params.Tags }}
|
|
<li><a href='{{ "tags/" | relURL }}{{ . | urlize }}' target="_blank">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ else }}
|
|
{{ i18n "tagsNone" }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
{{ partial "comments" . }}
|
|
</div>
|
|
{{ end }} |