{{ define "artwork_id_noscript" }} {{ if and .Artwork.Edges.Posts .Artwork.Edges.Socials }} {{ $post := index .Artwork.Edges.Posts 0 }} {{ $social := index .Artwork.Edges.Socials 0 }} {{ if $post.Title }} {{ $post.Title }} - {{ $social.DisplayName }} {{ else }} {{ $social.DisplayName }}'s artwork {{ end }} {{ if $post.Text }} {{ else if gt (len .Artwork.Edges.Files) 1 }} {{ end }} {{ else if .Artwork.Edges.Posts }} {{ $post := index .Artwork.Edges.Posts 0 }} {{ if $post.Title }} {{ $post.Title }} - unknown author {{ else }} unknown author's artwork {{ end }} {{ if $post.Text }} {{ else if gt (len .Artwork.Edges.Files) 1 }} {{ end }} {{ else if .Artwork.Edges.Socials }} {{ $social := index .Artwork.Edges.Socials 0 }} {{ $social.DisplayName }}'s artwork {{ if gt (len .Artwork.Edges.Files) 1 }} {{ end }} {{ else }} unknown author's artwork {{ if gt (len .Artwork.Edges.Files) 1 }} {{ end }} {{ end }} {{ if .Artwork.Edges.Files }} {{ $file := index .Artwork.Edges.Files .PhotoIndex }} {{ end }}
{{ if .Artwork.Edges.Socials }} {{ range $index, $social := .Artwork.Edges.Socials }}

{{ .Platform }}/{{ .DisplayName }}[{{ .ID }}]

{{ end }}
{{ else }}

无作者

{{ end }} {{ if .Artwork.Edges.Posts }} {{ range $index, $post := .Artwork.Edges.Posts }}
{{ .Platform }}/{{ .PostID }} {{ if .Text }}

{{ printf "%.19s" .Time }}

{{ end }} {{ if .Title }}

{{ .Title }}

{{ end }} {{ if .Text }}

{{ .Text }}

{{ end }}
{{ end }}
{{ else }}

无来源

{{ end }} {{ if .Artwork.Edges.Tags }} {{ range .Artwork.Edges.Tags }} #{{ .Text }} {{ end }} {{ else }}

无标签

{{ end }}
{{ range .Artwork.Edges.Files }} {{ else }}

没有找到图片

{{ end }}
{{ end }}