{{$title := .Site.Title}}{{$description := .Site.Description}}{{$keywords := "综合百货,日用集"}}{{$canonical := ""}}{{if .Content}}{{$title = printf "%s · %s" .Content.Title .Site.Title}}{{$description = .Content.Description}}{{$keywords = printf "%s,选购指南,日用集" .Content.Title}}{{if .Site.URL}}{{$canonical = url .Site.URL .Content.URL}}{{end}}{{else if .CurrentColumn}}{{$title = printf "%s · %s" .CurrentColumn.Name .Site.Title}}{{$keywords = printf "%s,综合百货,日用集" .CurrentColumn.Name}}{{if and .Pager (gt .Pager.Current 1)}}{{$title = printf "%s · 第%d页" $title .Pager.Current}}{{end}}{{if .CurrentColumn.Description}}{{$description = .CurrentColumn.Description}}{{end}}{{if and .Site.URL .Pager (le .Pager.Current 1) (ne .Type "search")}}{{$canonical = url .Site.URL .CurrentColumn.URL}}{{end}}{{else if and .Single (eq .Type "page")}}{{$title = printf "%s · %s" .Single.Title .Site.Title}}{{if .Site.URL}}{{$canonical = url .Site.URL .Single.URL}}{{end}}{{else if and (eq .Type "home") .Site.URL}}{{$canonical = url .Site.URL (page_url "")}}{{end}}{{$title}}{{if $canonical}}{{end}}{{if or (eq .Type "search") (eq .Type "shop_page")}}{{end}}