mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
{{- define "featured" -}}
|
|
{{- partial "home/featured.html" . -}}
|
|
{{- end -}}
|
|
|
|
{{- define "main" -}}
|
|
{{- $page := . -}}
|
|
|
|
{{- range $index, $section := site.Params.home.sections -}}
|
|
{{- $sectionPage := site.GetPage "section" $section -}}
|
|
{{- $sectionURL := $sectionPage.RelPermalink -}}
|
|
{{- $title := $sectionPage.Title -}}
|
|
{{- $thumbnail := $sectionPage.Params.Thumbnail -}}
|
|
{{- $icon := $sectionPage.Params.Icon -}}
|
|
{{- $description := $sectionPage.Description -}}
|
|
{{- $content := $sectionPage.Content -}}
|
|
|
|
{{- $moreTitle := (T (printf "more%s" (strings.FirstUpper $section))) -}}
|
|
|
|
{{- partial "assets/section-list.html" (dict
|
|
"page" $page
|
|
"section" $section
|
|
"home" true
|
|
"nested" true
|
|
"thumbnail" $thumbnail
|
|
"icon" $icon
|
|
"content" $content
|
|
"moreTitle" $moreTitle
|
|
"sectionURL" $sectionURL)
|
|
-}}
|
|
{{- end -}}
|
|
{{- end -}} |