{{$title := .Site.Title}}{{$description := .Site.Description}}{{$canonical := ""}}{{if .Content}}{{$title = .Content.Title}}{{$description = .Content.Description}}{{if .Site.URL}}{{$canonical = url .Site.URL .Content.URL}}{{end}}{{else if and .Single (eq .Type "page")}}{{$title = .Single.Title}}{{$description = .Single.Description}}{{if .Site.URL}}{{$canonical = url .Site.URL .Single.URL}}{{end}}{{else if .CurrentColumn}}{{$title = .CurrentColumn.Title}}{{$description = .CurrentColumn.Description}}{{if and .Site.URL .Pager}}{{if le .Pager.Current 1}}{{$canonical = url .Site.URL .CurrentColumn.URL}}{{end}}{{end}}{{else if and (eq .Type "home") .Site.URL}}{{$canonical = url .Site.URL (page_url "")}}{{end}}{{if eq $description ""}}{{if eq .Type "home"}}{{$description = "按茶类、器物与冲泡方式浏览茶叶、茶具和日常茶事手记。商品信息仅供演示。"}}{{else if eq .Type "shop_page"}}{{$description = "在一席茶事浏览与核对茶叶、茶具演示订单;商品价格与库存仅供展示。"}}{{else if eq .Type "search"}}{{$description = "搜索茶类、茶具与茶事手记,浏览与关键词相关的演示内容。"}}{{else if eq .Type "404"}}{{$description = "页面未找到。返回一席茶事继续浏览茶叶、茶具和冲泡手记。"}}{{else}}{{$description = "浏览茶类、茶具、茶事手记与演示商品内容。"}}{{end}}{{end}}