fix bug: table of content: if no content, not show toc

feature/cover-image
nodejh 8 years ago
parent affd4ee0a2
commit bdb83a4629

@ -27,9 +27,11 @@
</span> </span>
</h2> </h2>
</header> </header>
<div id="toc" class="well col-md-4 col-sm-6"> {{ if .TableOfContents }}
{{ .TableOfContents }} <div id="toc">
</div> {{ .TableOfContents }}
</div>
{{ end }}
<section id="post-body"> <section id="post-body">
{{ .Content }} {{ .Content }}
</section> </section>

Loading…
Cancel
Save