forked from scientific-python/scientific-python-hugo-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsection.html
More file actions
37 lines (37 loc) · 1.06 KB
/
section.html
File metadata and controls
37 lines (37 loc) · 1.06 KB
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
<section class="content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
{{ if .Content }}
{{ .Content }}
{{ else }}
{{ range .Pages }}
{{- if .Params.Author -}}
{{- errorf "Page %q uses deprecated 'author' field. Please use 'authors' instead." .File.Path -}}
{{- end -}}
<div class="post-list">
<article>
<div class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
<div class="post-authors">
{{- range .Params.Authors -}}
<div class="post-author">{{ . }}</div>
{{- end -}}
</div>
{{ if .Date }}
<div class="post-date">{{.Date.Format "January 2, 2006"}}</div>
{{ end }}
<div class="post-summary">{{ .Summary }}</div>
</article>
</div>
{{ end }}
{{ end }}
</div>
<div id="shortcuts-container">
<div id="shortcuts">
<div id="shortcuts-header"><i class="fa-solid fa-list"></i> On this page</div>
</div>
</div>
</section>