Back to Istio Io

{{ .Params.title }}

layouts/blog/list.html

latest868 B
Original Source

{{ .Params.title }}

{{ .Params.description }}

{{ $.Scratch.Set "years" (slice ) }} {{ $.Scratch.Set "noYears" 0 }} {{ $pages := (where .Site.RegularPages "Section" "blog").ByPublishDate.Reverse }} {{ range $pages }} {{ with .Params.publishdate }} {{ if eq ( printf "%T" (substr . 0 4) ) "string" }} {{ if ( not ( in ($.Scratch.Get "years") (substr . 0 4) ) ) }} {{ $.Scratch.Add "years" (substr . 0 4) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ range $.Scratch.Get "years" }} {{ . }} {{ end }}

{{ range $pages }} [

{{ (.Params.publishdate).Format "Jan 2, 2006" }}

{{ .Title }}

{{ .Params.description }}

{{ i18n "page_attribution" }}{{ replace (replace .Params.attribution "(" "- ") ")" "" }}

]({{%20.RelPermalink%20}}) {{ end }} {{ partial "subscribe_button.html" (dict "section" "blog") }} {{ partial "primary_bottom.html" . }} {{ end }}