{{/* time info shown in the left (or above in small screens) */}}
{{ .Date.Format "Jan 2"}}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }}
{{ .Date.Format "2006"}}
{{/* moment-main-content */}}
{{/* top mark */}} {{ if gt .Params.top 0}}
{{ end }} {{/* user info */}}
{{/* Main text content */}}
{{ .Content }}
{{/* add-on info 1: pictures */}} {{/* new pictures API `pictures` (combine single & multiple pictures)*/}} {{ $pictures_set := slice}} {{ $picture_caption := .Plain}} {{ with .Params.pictures }} {{ range . }} {{ with . }} {{ $pictures_set = $pictures_set | append . }} {{ end }} {{ end }} {{ end }} {{ if (eq (len $pictures_set) 1) }} {{ range $pictures_set }} Responsive image {{ 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 .Params.pic }} Responsive image {{ end }} {{/* Probably DEPRECATED in the future: multiple pictures (old version API `pic_set`) */}} {{ $pic_set_filtered := slice}} {{ with .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 := .Params.link }} {{ $link_logo := .Params.link_logo }} {{ $link_text := .Params.link_text }} {{ with .Params.link }} {{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text "baseurl" $.Site.BaseURL)}} {{ end }} {{/* Note info shown below the main content */}}

{{ .Date.Format "15:04" }} {{ .Params.note }}