{{$post := .}} {{$href := ""}} {{$title := ""}} {{$category := ""}} {{$cardTitle := ""}} {{$subtitle := ""}} {{$meta := ""}} {{$rate := ""}} {{$poster := ""}} {{$usePost := false}} {{if .Title}} {{$usePost = true}} {{$post = .}} {{$href = the_permalink .}} {{$title = .Title}} {{if .Category}}{{$category = .Category.Title}}{{end}} {{if .Abstract}}{{$subtitle = .Abstract}}{{else if content_diy . "episode_info"}}{{$subtitle = content_diy . "episode_info"}}{{end}} {{if content_diy . "rate"}}{{$rate = content_diy . "rate"}}{{end}} {{else if .href}} {{$href = .href}} {{$title = .title}} {{$subtitle = .subtitle}} {{$meta = .meta}} {{$rate = .rate}} {{$poster = .poster}} {{if .category}}{{$category = .category}}{{end}} {{else}} {{$usePost = true}} {{$post = .post}} {{if .href}}{{$href = .href}}{{else}}{{$href = the_permalink $post}}{{end}} {{if .title}}{{$title = .title}}{{else}}{{$title = $post.Title}}{{end}} {{if .category}}{{$category = .category}}{{else if $post.Category}}{{$category = $post.Category.Title}}{{end}} {{if .subtitle}}{{$subtitle = .subtitle}}{{else if $post.Abstract}}{{$subtitle = $post.Abstract}}{{else if content_diy $post "episode_info"}}{{$subtitle = content_diy $post "episode_info"}}{{end}} {{if .meta}}{{$meta = .meta}}{{end}} {{if content_diy $post "rate"}}{{$rate = content_diy $post "rate"}}{{end}} {{end}} {{if $category}}{{$cardTitle = printf "%s%s" $category $title}}{{else}}{{$cardTitle = $title}}{{end}}
{{if $usePost}} {{if the_upload $post}} {{$cardTitle}}海报 {{else if content_diy $post "poster"}} {{$cardTitle}}海报 {{else if $poster}} {{$cardTitle}}海报 {{else}}
{{end}} {{else if $poster}} {{$cardTitle}}海报 {{else}}
{{end}}
{{if $rate}} {{$rate}} {{end}}

{{$title}}

{{if or $meta $subtitle}}

{{if $meta}}{{$meta}}{{else}}{{$subtitle}}{{end}}

{{end}}