Add toc to main-article partial
This commit is contained in:
parent
284b5469ce
commit
cf40c32443
|
@ -1,15 +1,22 @@
|
|||
<article class="main-article">
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="author-row">
|
||||
{{ with .Params.author }}
|
||||
<strong><p class="author-name">{{ .name }}</p></strong>
|
||||
<p class="author-name">on</p>
|
||||
{{ end }}
|
||||
{{ if isset .Params "date" }}
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
<div class="article-container">
|
||||
<article class="main-article">
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="author-row">
|
||||
{{ with .Params.author }}
|
||||
<strong><p class="author-name">{{ .name }}</p></strong>
|
||||
<p class="author-name">on</p>
|
||||
{{ end }} {{ if isset .Params "date" }}
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
<div id="tocWrapper">
|
||||
<h4>Table of Contents</h4>
|
||||
{{ if .Params.toc }}
|
||||
<aside>{{.TableOfContents}}</aside>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue