Files
pycom-documentation/layouts/_default/list.html
jirikrepl 6e99f42af8 feat: added "algolia search" css class to layout templates
hugo uses single and list templates:
https://gohugo.io/templates/lists/
https://gohugo.io/templates/single-page-templates/

we use single templates for "leaf" pages at the bottom of
and list templates for all other pages
2020-01-07 11:03:36 +01:00

24 lines
638 B
HTML

{{ define "main" }}
<v-card class="DocSearch-content">
<v-card-text>
{{ if not .Params.disable_breadcrumbs }}
{{ partial "breadcrumb_recursive.html" (dict "menu" .Site.Menus.main "page" . ) }}
{{ end }}
<h1>{{- .Title -}}</h1>
{{- .Content -}}
<ul>
{{ if lt .WordCount 10 }}
{{ range .Paginator.Pages }}
<li><a href="{{ .URL }}">
{{ if .Title }}{{ .Title }}{{ else }}{{ .URL }}{{ end }}<a/></li>
{{ end }}
{{ end }}
</ul>
</v-card-text>
</v-card>
<p>&nbsp;</p>
{{ partial "prev_next.html" (dict "menu" .Site.Menus.main "page" . ) }}
<v-spacer/>
{{ end }}