{* This fragment (thumbnail-dt.jet.html) templates in the artwork thumbnail *} {{- target := CookieList["pixivfe-ThumbnailToNewTab"] }} {{- hideR18 := CookieList["pixivfe-HideArtR18"] }} {{- hideR18G := CookieList["pixivfe-HideArtR18G"] }} {{- hideAi := CookieList["pixivfe-HideArtAI"] }} {{- AiType := isset(.AiType) ? .AiType : 0}}
{* Empty div for the illust preview (it needs to wrap the anchor) *}
{* When an artwork is listed on the ranking page *} {{- if isset(.Rank) }} {{ .Rank }} {{- end }} {* When an artwork is tagged as R-18 or R-18G *} {{- if .XRestrict != 0 }} {{ if .XRestrict == 1 }}R-18{{ else }}R-18G{{ end }} {{- end }} {* When an artwork is tagged as AI-generated *} {{- if AiType == 2 }} AI {{- end }}
{* When an artwork has multiple images *} {{- if .Pages > 1 }} {{ .Pages }} {{- end }}
{{- if (.XRestrict > 0 && hideR18 != "" && hideR18G != "") || (.XRestrict == 2 && hideR18G != "") }} {* When the user has enabled hideR18 or hideR18G, display a plain thumbnail instead *} {{ .Title }} {* When the user has enabled hideAi, display a plain thumbnail instead *} {{- else if AiType == 2 && hideAi }} {{ .Title }} {{- else }} {{ .Title }} {{- end }}
{* When an artwork is a ugoira *} {* Creates a centered, circular overlay (60x60px) with semi-transparent black background. The play icon is centered within this overlay and appears on top of the thumbnail. *} {{- if .IllustType == 2 }}
{{- end }}