hugo-theme-hyde-hyde/layouts/partials/page-single/content.html

30 lines
796 B
HTML
Raw Normal View History

2018-07-16 03:22:00 +00:00
<article>
<header>
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
<span class="post__subtitle">
{{.}}
</span>
2018-09-29 23:32:57 +00:00
{{ end }}
{{ partial "page-single/post-meta.html" . }}
2018-07-16 03:22:00 +00:00
</header>
2018-09-29 23:32:57 +00:00
{{ $tableOfContents := .TableOfContents }}
{{ with .Site.Params.toc }}
<div class="toc-wrapper">
<input type="checkbox" id="tocToggle">
<label for="tocToggle">Table of Content</label>
{{ if eq . "hugo" }}
{{ $tableOfContents }}
{{ else if eq . "tocbot"}}
<div class="toc" id="TableOfContents"></div>
{{ end }}
</div>
{{ end }}
2018-07-16 03:22:00 +00:00
<div class="post">
{{ .Content }}
</div>
{{ partial "page-single/post-navigation.html" . }}
{{ partial "page-single/post-related.html" . }}
{{ partial "page-single/post-comment.html" . }}
2018-07-26 21:08:51 +00:00
</article>