kobel/layouts/_default/single.html

28 lines
705 B
HTML
Raw Normal View History

2023-12-23 23:01:53 +00:00
{{ define "main" }}
2024-04-20 19:43:44 +00:00
<div class="content">
<div class="meta">
<span> {{ .Date.Format "2006-01-02" }}</span>
<span> ⏱ {{.ReadingTime}} min</span>
{{ with .Params.tags }}
<span>
{{ range . }}
<a href="{{ " tags" | absURL }}/{{ . | urlize }}/">#{{ . }}</a>
{{ end }}
</span>
{{ end }}
</div>
{{ with .Title }}
<div class="title">
<h1>{{ . }}</h1>
</div>
{{ end }}
{{ 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>
2023-12-23 23:01:53 +00:00
</div>
2024-04-20 19:43:44 +00:00
{{ end }}
{{ .Content }}
</div>
{{ end }}