{{ $pages := first 6 (sort .Site.RegularPages "Date" "desc") }}
{{ range $index, $page := first 3 $pages }}
{{ range ($page.GetTerms "categories") }} {{ .Params.title }} {{ end }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }}
{{ range $index, $page := $pages }} {{ if eq $index 3 }}
{{ range ($page.GetTerms "categories") }} {{ .LinkTitle }} {{ end }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }} {{ if eq $index 4 }}
{{ end }} {{ if or (eq $index 4) (eq $index 5) }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }} {{ if eq $index 5 }}
{{ end }} {{ end }}

### Local News

{{ $shownPermalinks := slice }} {{ range first 6 $pages }} {{ $shownPermalinks = $shownPermalinks | append .Permalink }} {{ end }} {{ $lifeAll := where .Site.RegularPages "Params.tags" "intersect" (slice "生活") }} {{ $lifePages := where $lifeAll "Permalink" "not in" $shownPermalinks }} {{ range first 12 $lifePages }}

## {{ .Params.title }}

{{ end }}