{{ define "main" }}

{{ title ( T "ui_search_by_tags" ) }}

{{ ( T "ui_tags_intro" ) }}

{{ $tags := index .Site.Taxonomies "tags" }}
{{ range $tags }} {{ $tagid := printf "tag-%s" ( replace .Page.Title " " "-" ) }} {{ end }}
{{ $sortedPages := sort .Site.Pages "Date" "desc" }} {{ range $sortedPages }} {{ if eq .Section "blog" }} {{ $.Scratch.Set "tag_classes" "" }} {{ range .Params.tags }} {{ with . }} {{ $.Scratch.Add "tag_classes" (printf "tag-%s " ( replace . " " "-" ) ) }} {{ end }} {{ end }}

{{ .Title }}

{{ .Summary }}..

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