{{define "public/tag_hub.html"}} {{template "public_favicon_link" .}} {{.Title}} - {{T "site_name"}} {{if .Description}}{{end}} {{template "custom-head-embed" .}} {{template "public/header_frag" .}}

{{T "tag_hub_title"}}

{{.Data.TagName}}

{{T "tag_hub_desc"}}

{{T "tag_hub_tab_all"}} {{T "tag_hub_tab_item"}} {{T "tag_hub_tab_article"}}
{{if gt .Data.Total 0}} {{.Data.Total}}{{T "tag_hub_total_suffix"}} {{end}}
{{if .Data.Rows}}
{{range .Data.Rows}} {{if eq .CType "item"}} {{template "public/browse_item_card" .Card}} {{else}} {{template "public/article_browse_item_card" .Card}} {{end}} {{end}}
{{if gt .Data.TotalPages 1}} {{end}} {{else}}

{{if eq .Data.CType "item"}}{{T "tag_hub_empty_item"}} {{else if eq .Data.CType "article"}}{{T "tag_hub_empty_article"}} {{else}}{{T "tag_hub_empty_all"}}{{end}}

{{if eq .Data.CType "article"}}{{if gt .Data.ItemTotal 0}}{{T "tag_hub_empty_switch_item"}}{{else}}{{T "tag_hub_empty_hint"}}{{end}} {{else if eq .Data.CType "item"}}{{if gt .Data.ArticleTotal 0}}{{T "tag_hub_empty_switch_article"}}{{else}}{{T "tag_hub_empty_hint"}}{{end}} {{else}}{{T "tag_hub_empty_hint"}}{{end}}

{{end}}
{{template "public/footer_frag" .}} {{end}}