mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 07:06:20 +01:00
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
24 lines
638 B
HTML
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> </p>
|
|
{{ partial "prev_next.html" (dict "menu" .Site.Menus.main "page" . ) }}
|
|
<v-spacer/>
|
|
|
|
{{ end }}
|