hugo.yaml
themes
hugo-theme-ipng
LICENSE.mdREADME.mdtheme.toml
archetypes
assets
data
notrack
layouts
404.html
_default
home.htmlpartials
blog-entry-summary.htmlblog-taxonomy-info.htmlfooter.htmlhead.htmlheader.htmlpagination.htmlpost-category-link.htmlpost-tag-link.html
shortcodes
asciinema.htmlcontact-box.htmlcontainer.htmlgallery-category.htmlgallery-modal.htmlgallery-photo.htmlgallery-script.htmlimage.htmlrawhtml.htmlsocial.htmlvideo.html
taxonomy
static
css
fonts
FreeMono.woffFreeMonoBold.woffFreeMonoBoldOblique.woffFreeMonoOblique.woffFreeSans-small.woffFreeSans.woffFreeSansBold-small.woffFreeSansBold.woffFreeSansBoldOblique.woffFreeSansOblique.woffFreeSerif-small.woffFreeSerif.woffFreeSerifBold-small.woffFreeSerifBold.woffFreeSerifBoldItalic-small.woffFreeSerifBoldItalic.woffFreeSerifItalic-small.woffFreeSerifItalic.wofffa-brands-400.woff2fa-solid-900.woff2mononoki-Bold.woff2mononoki-BoldItalic.woff2mononoki-Italic.woff2mononoki-Regular.woff2
js
hugo-theme-notrack
27
themes/hugo-theme-ipng/layouts/_default/list.html
Normal file
27
themes/hugo-theme-ipng/layouts/_default/list.html
Normal file
@ -0,0 +1,27 @@
|
||||
{{ 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 }}
|
Reference in New Issue
Block a user