blob: 0d7df531adbf27823643a5be4137fbe7e21c44ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{{ define "main" }}
{{ range sort .Paginator.Pages }}
<article class="book-post markdown">
<h2>
<a href="{{ .RelPermalink }}">{{ partial "docs/title" . }}</a>
</h2>
<div class="book-post-container flex gap">
<div>
{{ partial "docs/post-meta" . }}
<div class="book-post-content markdown-inner">
{{- .Summary | truncate 256 -}}
</div>
</div>
{{- $thumbnail := default "thumbnail.*" .Params.BookPostThumbnail -}}
{{- with or (.Resources.GetMatch $thumbnail) (resources.GetMatch $thumbnail) -}}
<div class="book-post-thumbnail">
<img src="{{ .RelPermalink }}" />
</div>
{{- end -}}
</div>
</article>
{{ end }}
{{ end }}
{{ define "toc-container" }}
<aside class="book-toc">
<div class="book-toc-content">
{{ template "toc" . }}
</div>
</aside>
{{ end }}
{{ define "toc" }}
{{ partial "docs/taxonomy" . }}
{{ end }}
{{ define "footer" }}
{{ partial "docs/pagination.html" . }}
{{ end }}
|
; all rights regarding Text and Data Mining (TDM) are reserved.