{{- extends "layout/default" }} {{- import "blocks/comments" }} {{- block body() }}
{{- include "fragments/artwork" .Illust }}
{{- combinedUrl := "/artworks-multi/" + joinArtworkIds(.Illust.RecentWorks) }}
{* we only render 19 items if there are 20 RecentWorks to avoid a newline with only the "View more" button on large devices *} {* col-7 is used for each RecentWorks item to create a visible affordance *} {{- if len(.Illust.RecentWorks) == 20 }} {{- range .Illust.RecentWorks[:19] }}
{{ include "fragments/thumbnail-dt" . }}
{{ include "fragments/thumbnail-tt" . }}
{{- end }} {{- else }} {{- range .Illust.RecentWorks }}
{{ include "fragments/thumbnail-dt" . }}
{{ include "fragments/thumbnail-tt" . }}
{{- end }} {{- end }} {* View more button *} {* TODO: add hover effect for this element *}
{* NOTE: the lack of #checkpoint is intentional; we need to orient the user once they land on the user page for the first time *}
View more
{{- yield Comments(data=.Illust, contentType="illust") }}
{{- if len(.Illust.RelatedWorks) > 0 }}

Related works

{{- include "fragments/small-tn" .Illust.RelatedWorks }}
{{- end }}
{{- end }}