2023-12-23 23:01:53 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ with .Params.image }}
|
|
|
|
{{ if .url }}
|
|
|
|
<img class="coverimage" src="{{ .url }}" alt="{{ .alt }}" />
|
|
|
|
{{ else }}
|
|
|
|
<img class="coverimage" src="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<div class="content">
|
|
|
|
{{ with .Title }}
|
|
|
|
<div class="title">
|
2023-12-26 23:23:25 +00:00
|
|
|
<h1>{{ . }}</h1>
|
2023-12-23 23:01:53 +00:00
|
|
|
<div class="divider"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<!-- <h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6> -->
|
2024-01-09 21:51:52 +00:00
|
|
|
{{ 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 }}
|
2023-12-23 23:01:53 +00:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|