{{/* Schema.org JSON-LD:WebSite / BreadcrumbList + 页面类型结构化数据 */}}
{{- $homeUrl := the_permalink `` -}}
{{- $url := the_permalink nil -}}
{{- $name := .title -}}
{{- if .content -}}{{- $name = or $name .content.Title -}}{{- end -}}
{{- $desc := or .meta_description site.Description -}}
{{- if and (or is_content is_page) .content -}}
{{- $ab := trim_html (string .content.Abstract) -}}
{{- if ne $ab ""}}{{- $desc = $ab -}}{{- end -}}
{{- end -}}
{{- if .is_film_play -}}
{{- if and .vod_detail .vod_detail.Blurb -}}{{- $desc = .vod_detail.Blurb -}}{{- end -}}
{{- if and .vod_detail .vod_detail.Name -}}{{- $name = or $name .vod_detail.Name -}}{{- end -}}
{{- if eq $name "" -}}{{- $name = "在线播放" -}}{{- end -}}
{{- else if and is_content .content -}}
{{- $plot := vod_blurb_cached .content -}}
{{- if ne $plot ""}}{{- $desc = $plot -}}{{- end -}}
{{- end -}}
{{- $sitePart := dict "@type" "WebSite" "name" site.Name "url" $homeUrl -}}
{{- if is_home -}}
{{- else if is_category -}}
{{- else if is_tag -}}
{{- else if is_search -}}
{{- else if is_author -}}
{{$aname := or .user.Nickname .user.Name}}
{{- else if is_archive -}}
{{- else if is_page -}}
{{- else if and is_content (eq .content.PostType "role") -}}
{{$rp := get_content_index .content.ParentID 0 "" 1 0}}
{{- if and $rp (gt (len $rp) 0)}}
{{$rpar := index $rp 0}}
{{- else -}}
{{- end -}}
{{- else if and is_content (eq .content.PostType "film") (ne .content.ParentID 0) -}}
{{$fps := get_content_index .content.ParentID 0 "" 1 0}}
{{- if and $fps (gt (len $fps) 0)}}
{{$fser := index $fps 0}}
{{- else -}}
{{- end -}}
{{- else if and is_content (eq .content.PostType "film") -}}
{{- if and .content .content.Category}}
{{$fc := .content.Category}}
{{- else -}}
{{- end -}}
{{- else if and is_content (eq .content.PostType "artist_index") -}}
{{$parents := get_content_index .content.ParentID 0 "" 1 0}}
{{- if and .content .content.Category -}}
{{$fc := .content.Category}}
{{- if and $parents (gt (len $parents) 0) -}}
{{$series := index $parents 0}}
{{$items := category_breadcrumb_ld $homeUrl $fc true "" ""}}
{{$items = tuple_append_ld $items $series.Title (the_permalink $series)}}
{{$items = tuple_append_ld $items .content.Title $url}}
{{- else -}}
{{- end -}}
{{- else if and $parents (gt (len $parents) 0) -}}
{{$series := index $parents 0}}
{{- else -}}
{{- end -}}
{{- else if and is_content (eq .content.PostType "film_index") -}}
{{- $poster := "" -}}
{{- if content_diy .content "poster" -}}{{- $poster = douban_proxy_url (content_diy .content "poster") -}}
{{- else if the_upload .content -}}{{- $poster = the_upload .content -}}
{{- else if vod_poster_cached .content -}}{{- $poster = douban_proxy_url (vod_poster_cached .content) -}}
{{- end -}}
{{- if and .content .content.Category}}
{{$fc := .content.Category}}
{{- else -}}
{{- end -}}
{{- if content_diy .content "rate" -}}
{{- else -}}
{{- end -}}
{{- else if and is_content (eq .content.PostType "artist") -}}
{{- if and .content .content.Category}}
{{$ac := .content.Category}}
{{- else -}}
{{- end -}}
{{- else if is_content -}}
{{- if and .content .content.Category}}
{{$bc := .content.Category}}
{{- else -}}
{{- end -}}
{{- else if .is_film_play -}}
{{- $playName := $name -}}
{{- $playPoster := "" -}}
{{- if .vod_poster -}}{{- $playPoster = douban_proxy_url .vod_poster -}}
{{- else if .content -}}
{{- if content_diy .content "poster" -}}{{- $playPoster = douban_proxy_url (content_diy .content "poster") -}}
{{- else if the_upload .content -}}{{- $playPoster = the_upload .content -}}
{{- else if vod_poster_cached .content -}}{{- $playPoster = douban_proxy_url (vod_poster_cached .content) -}}
{{- end -}}
{{- else if .feed_poster -}}{{- $playPoster = douban_proxy_url .feed_poster -}}
{{- end -}}
{{- if .content -}}
{{- else -}}
{{- end -}}
{{- else if and .title (ne .title site.Name) -}}
{{- else -}}
{{- end -}}