33 lines
975 B
HTML
33 lines
975 B
HTML
{{ define "main" }}
|
|
<main class="{{ if $.Param "enableSidebar" }}main-main{{ else }}main{{ end }}">
|
|
{{ if eq .Site.Params.enableBreadcrumb true }}
|
|
{{ partial "body/breadcrumb" . }}
|
|
{{ end }}
|
|
<div class="single">
|
|
<h2 class="single__title">{{ .Title }}</h2>
|
|
<div class="single__meta">
|
|
🕓 {{ .Date.Format (i18n "single-dateformat") }} · ☕{{ .ReadingTime }} min read
|
|
{{ partial "body/tags" . }}
|
|
</div>
|
|
<article class="single__contents">
|
|
{{ .Content }}
|
|
</article>
|
|
{{ partial "body/whoami" . }}
|
|
{{ partial "body/related" . }}
|
|
{{ partial "pagination/pagination-single" . }}
|
|
{{ partial "comments/comments.html" . }}
|
|
{{ partial "body/photoswipe" . }}
|
|
{{ partial "body/lib" . }}
|
|
|
|
<div class="hide">
|
|
{{ partial "sidebar/site-search" . }}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
{{ if $.Param "enableSidebar" }}
|
|
<aside class="main-side">
|
|
{{ partial "sidebar/sidebar-single" . }}
|
|
</aside>
|
|
{{ end }}
|
|
{{ end }} |