{{ $p := slice }} {{ range site.Taxonomies.categories }} {{ $p = $p | append .Page }} {{ end }}

### 推薦主題

{{ $p := slice }} {{ range site.Taxonomies.categories }} {{ $p = $p | append .Page }} {{ end }}
{{ range $index, $element := first 6 $p }}
{{ $t := slice .LinkTitle }} {{ range $index, $element := where .Site.Pages ".Params.categories" "intersect" $t }} {{ if or (eq $index 0) (eq $index 1) }}
{{ range (.GetTerms "categories") }} {{ .LinkTitle }} {{ end }} {{ .Date | time.Format ":date_long" }}

## {{ .Params.title }}

{{ .Summary }}

{{ else if or (eq $index 2) (eq $index 3) (eq $index 4) (eq $index 5) }}
{{ range (.GetTerms "categories") }} {{ .LinkTitle }} {{ end }} {{ .Date | time.Format ":date_long" }}

## {{ .Params.title }}

{{ .Summary }}

{{ end }} {{ end }}
{{ end }}