Commit 33579c44 authored by Kaushal Modi's avatar Kaushal Modi

Add TOC; Add .content class to .Page.Content

parent 3e672a13
......@@ -3,7 +3,20 @@
<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ partial "publishdate-maybe" . }}</span>
{{ .Content }}
{{ if not .Params.notoc }}
{{ with .TableOfContents }}
<div class="tableofcontents">
<h3>Contents</h3>
{{ . }}
</div>
{{ end }}
{{ partial "toc_on_side" . }}
{{ end }}
<div class="content">
{{ .Content }}
</div>
</div>
<div class="post-catlist right">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment