mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 15:28:55 +00:00
55 lines
2.0 KiB
HTML
55 lines
2.0 KiB
HTML
{{ partial "head" . }}
|
|
<body>
|
|
{{ partial "header" . }}
|
|
|
|
<div id="body">
|
|
<div class="container">
|
|
<div class="col-group">
|
|
|
|
<div class="col-8" id="main">
|
|
<div class="res-cons">
|
|
<article class="post">
|
|
<header>
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
</header>
|
|
<date class="post-meta meta-date">
|
|
{{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日
|
|
{{ printf "%02d" .Date.Hour }}:{{ printf "%02d" .Date.Minute }}
|
|
</date>
|
|
{{ with .Params.Categories }}
|
|
<div class="post-meta meta-category">
|
|
,归类于
|
|
{{ range . }}
|
|
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
<div class="post-content">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ 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/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ else }}
|
|
没有标签
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
{{ partial "comments" . }}
|
|
</div>
|
|
</div>
|
|
{{ partial "sidebar" . }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ partial "footer" . }}
|
|
</body>
|
|
</html>
|