{{ range . }}
{{ end }}
{{/* Main text content */}}
{{ if .Site.Params.features.heti }}{{ trim . " " }}
{{ end }}
{{ else }}
{{ end }}
{{ end }}
{{ if (gt (len $pictures_set) 1)}}
{{ partial "pic_set.html" (dict "pic_set" $pictures_set "other" $.Site.BaseURL "caption" $picture_caption) }}
{{ end }}
{{/* Probably DEPRECATED in the future: single picture (old version API `pic`)*/}}
{{ with $page.Params.pic }}
{{ end }}
{{/* Probably DEPRECATED in the future: multiple pictures (old version API `pic_set`) */}}
{{ $pic_set_filtered := slice}}
{{ with $page.Params.pic_set }}
{{ range . }}
{{ with . }}
{{ $pic_set_filtered = $pic_set_filtered | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ with $pic_set_filtered }}
{{ partial "pic_set.html" (dict "pic_set" . "caption" $picture_caption) }}
{{ end }}
{{/* add-on info 2: hyperlink to other resourse (e.g webpage, Netease music, Bilibili Video) */}}
{{ $link_link := $page.Params.link }}
{{ $link_logo := $page.Params.link_logo }}
{{ $link_text := $page.Params.link_text }}
{{ with $page.Params.link }}
{{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text "baseurl"
$page.Site.BaseURL)}}
{{ end }}
{{/* Note info shown below the main content */}}
{{ if $.site.Params.experimental.comment }}
{{ end }}
{{ end }}
{{ $page.Content }}
{{/* add-on info 1: pictures */}}
{{/* new pictures API `pictures` (combine single & multiple pictures)*/}}
{{ $pictures_set := slice}}
{{ $picture_caption := $page.Plain}}
{{ with $page.Params.pictures }}
{{ range . }}
{{ with . }}
{{ $pictures_set = $pictures_set | append . }}
{{ end }}
{{ end }}
{{ end }}
{{/* EXPERIMENTAL video support */}}
{{ with $page.Params.video }}
{{ end }}
{{ if (eq (len $pictures_set) 1) }}
{{ range $pictures_set }}
{{ $page.Date.Format "15:04" }}{{ $page.Params.note }}