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

33 lines
900 B
HTML
Raw Normal View History

2019-04-02 06:22:00 +00:00
{{ $include_toc := .Params.include_toc}}
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 }}
2019-04-02 06:22:00 +00:00
{{ if ne $include_toc false }}
<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-09-29 23:32:57 +00:00
{{ 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>