18 lines
No EOL
620 B
HTML
18 lines
No EOL
620 B
HTML
{{ define "main" }}
|
|
<div class="content">
|
|
{{ with .Title }}
|
|
<div class="title">
|
|
<h1>{{ . }}</h1>
|
|
<div class="divider"></div>
|
|
</div>
|
|
{{ end }}
|
|
<!-- <h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6> -->
|
|
{{ if gt (.TableOfContents | findRE `<li>` | len) 4}}
|
|
<div class="table-of-contents">
|
|
{{ .TableOfContents }}
|
|
<div class="extend" onclick="toggleTableOfContent(event)"><i class="icon-angle-right"></i></div>
|
|
</div>
|
|
{{ end }}
|
|
{{ .Content }}
|
|
</div>
|
|
{{ end }} |