initial commit
This commit is contained in:
commit
f92932b947
44 changed files with 851 additions and 0 deletions
19
layouts/partials/preview_list.html
Normal file
19
layouts/partials/preview_list.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{ $paginator := .Paginate (where .Data.Pages "Type" "!=" "page") }}
|
||||
{{ 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" . }}
|
Loading…
Add table
Add a link
Reference in a new issue