{{ extends "layout/default" }} {{ import "components/switcher" }} {{ block body() }}
{{ if .Tag.Metadata.ID }} {{ .Tag.Name }} {{ end }}
#{{ .Tag.Name }} {{ .Tag.Metadata.Name }}

{{ .Data.Artworks.Total }} works

{{ .Tag.Metadata.Detail }}

{{ range .Data.RelatedTags }}
#{{ . }}
{{ end }}
{{ Category := isset(.Queries.category) ? .Queries.category : "artworks" }} {{ Order := isset(.Queries.order) ? .Queries.order : "date_d" }} {{ Mode := isset(.Queries.mode) ? .Queries.mode : "safe" }} {{ Ratio := isset(.Queries.ratio) ? .Queries.ratio : "" }} {{ SearchMode := isset(.Queries.smode) ? .Queries.smode : "" }}
Category
{{ URL := unfinishedQuery(.QueriesC, "category") }} {{ path := slice("artworks", "illustrations", "manga")}} {{ name := slice("Artworks", "Illustrations", "Manga")}} {{ yield Switcher(baseURL=URL, paths=path, names=name, currentPath=Category) }}
Order
{{ URL := unfinishedQuery(.QueriesC, "order") }} {{ path := slice("date_d", "date")}} {{ name := slice("Newest", "Oldest")}} {{ yield Switcher(baseURL=URL, paths=path, names=name, currentPath=Order) }}
Filter
{{ URL := unfinishedQuery(.QueriesC, "mode") }} {{ path := slice("all", "safe", "r18")}} {{ name := slice("All", "Safe", "R-18")}} {{ yield Switcher(baseURL=URL, paths=path, names=name, currentPath=Mode) }}
Ratio
{{ URL := unfinishedQuery(.QueriesC, "ratio") }} {{ path := slice("", "-0.5", "0", "0.5")}} {{ name := slice("All", "Portrait", "Square", "Landscape")}} {{ yield Switcher(baseURL=URL, paths=path, names=name, currentPath=Ratio) }}
Search mode
{{ URL := unfinishedQuery(.QueriesC, "smode") }} {{ path := slice("", "s_tag_full", "s_tag", "s_tc")}} {{ name := slice("None", "Exact (tags)", "Partial (tags)", "Title/Caption")}} {{ yield Switcher(baseURL=URL, paths=path, names=name, currentPath=SearchMode) }}

Advanced settings

{{ URL := unfinishedQuery(.QueriesC, "") }}
{{ if .Data.Popular.Recent }}

Popular artworks

Recent

{{ include "components/small-tn" .Data.Popular.Recent }}

All Time

{{ include "components/small-tn" .Data.Popular.Permanent }}
{{ end }} {* Switchers here *}

Works

{{ include "components/small-tn" .Data.Artworks.Artworks }}
{{ end }}