first!
This commit is contained in:
commit
cf7a27bfa1
225 changed files with 3580 additions and 0 deletions
22
content/things/_content.gotmpl
Normal file
22
content/things/_content.gotmpl
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{{- $data := slice }}
|
||||
{{- with os.ReadFile "data/things.json" }}
|
||||
{{- $data = . | transform.Unmarshal }}
|
||||
{{- end }}
|
||||
|
||||
{{- range $data }}
|
||||
{{- $params := dict
|
||||
"link" .link
|
||||
"thumb" .thumb
|
||||
"type" .type
|
||||
"title" .title
|
||||
}}
|
||||
{{- $dates := dict "date" (time .date) }}
|
||||
{{- $page := dict
|
||||
"kind" "page"
|
||||
"path" (printf "%s/%s" .type .id)
|
||||
"title" .title
|
||||
"dates" $dates
|
||||
"params" $params
|
||||
}}
|
||||
{{- $.AddPage $page }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue