diff options
| author | leo <azuminha1@gmail.co> | 2025-10-16 20:02:39 -0300 |
|---|---|---|
| committer | leo <azuminha1@gmail.co> | 2025-10-16 20:02:39 -0300 |
| commit | 8e7996214af853803c4dd04534b1f5646b0ac1c5 (patch) | |
| tree | 14a30d462b47b54d41613347782da6e48b71d082 /themes/hugo-classic/layouts/_default/list.html | |
first
Diffstat (limited to 'themes/hugo-classic/layouts/_default/list.html')
| -rw-r--r-- | themes/hugo-classic/layouts/_default/list.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/hugo-classic/layouts/_default/list.html b/themes/hugo-classic/layouts/_default/list.html new file mode 100644 index 0000000..0ee6442 --- /dev/null +++ b/themes/hugo-classic/layouts/_default/list.html @@ -0,0 +1,21 @@ +{{ partial "header.html" . }} + +<div class="content-wrapper"> +{{if not .IsHome }} + <h1>{{ .Title | markdownify }}</h1> + {{ end }} + + {{ .Content }} + + <ul> + {{ $pages := .Pages }} + {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} + {{ range (where $pages "Section" "!=" "") }} + <li> + <span class="date">{{ .Date.Format "2006/01/02" }}</span> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> + </li> + {{ end }} + </ul> +</div> +{{ partial "footer.html" . }} |
