hugo-internet-weblog/layouts/partials/preview_list.html

26 lines
585 B
HTML
Raw Normal View History

2019-08-17 18:54:03 -04:00
{{ $pages := .Pages }}
{{ if .IsHome }}
{{ $pages = .Site.RegularPages }}
{{ end }}
{{ $paginator := .Paginate $pages }}
2016-02-19 23:35:42 -05:00
{{ range .Paginator.Pages }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if or (eq .Type "microposts") (eq .Type "micropost") }}
{{ partial "preview_micropost.html" . }}
{{ end }}
{{ if or (eq .Type "photos") (eq .Type "photo") }}
{{ partial "preview_photo_post.html" . }}
{{ end }}
{{ if or (eq .Type "posts") (eq .Type "post") }}
{{ partial "preview_post.html" . }}
{{ end }}
{{ end }}
{{ partial "pagination.html" . }}