archetypes
content
static
themes
hugo-theme-ipng
archetypes
assets
data
layouts
_default
archives.html
baseof.html
list.html
rss.xml
single.html
partials
shortcodes
taxonomy
404.html
home.html
static
LICENSE.md
README.md
theme.toml
.drone.yml
.gitattributes
.gitignore
addpic.sh
hugo.yaml
mkgallery.sh
28 lines
820 B
HTML
28 lines
820 B
HTML
{{ define "main" }}
|
||
<main>
|
||
|
||
<h1 class="page-title">{{ .Title }}</h1>
|
||
|
||
Here’s a sitemap of informational articles and papers in reversed chronological order:
|
||
|
||
{{- if .Pages -}}
|
||
{{- $pages := (where .Pages ".Draft" false) -}}
|
||
|
||
{{- /* Use site config params for posts per page if available, otherwise default */ -}}
|
||
{{- with .Site.Params.list.paginate | default .Site.Params.paginate -}}
|
||
{{- $pages = $.Paginate $pages . -}}
|
||
{{- else -}}
|
||
{{- $pages = .Paginate $pages -}}
|
||
{{- end -}}
|
||
|
||
<ul>
|
||
{{- range $pages.Pages -}}
|
||
<li><a href="{{ .Permalink }}"><time>{{ .Date.Format "2006-01-02"}}</time> - {{.Title}}</a></li>
|
||
{{- end -}}
|
||
</ul>
|
||
|
||
{{ partial "pagination.html" . }}
|
||
{{- end -}}
|
||
</main>
|
||
{{ end }}
|