mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-12-04 14:50:24 +00:00
Reintroducing item factorization
This commit is contained in:
parent
565c349fdd
commit
f08ccf839e
3 changed files with 30 additions and 36 deletions
|
|
@ -13,14 +13,7 @@
|
|||
],
|
||||
"items": [
|
||||
{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
|
||||
{
|
||||
"id": "{{ $page.Permalink }}",
|
||||
"url": "{{ $page.Permalink }}",
|
||||
"title": {{ $page.Title | jsonify }},
|
||||
"content_html": {{ $page.Content | jsonify }},
|
||||
"date_published": "{{ $page.Date.Format "2006.01.02" }}",
|
||||
"tags": {{ $page.Params.tags | jsonify }}
|
||||
}
|
||||
{{ .Render "item"}}
|
||||
{{ end }}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue