{{ $page := .page }} {{ $index := .index }}
{{/* time info shown in the left (or above in small screens) */}}
{{ $page.Date.Format "Jan 2"}}{{ if in (slice 1 21 31) $page.Date.Day}}st{{ else if in (slice 2 22) $page.Date.Day}}nd{{ else if in (slice 3 23) $page.Date.Day}}rd{{ else }}th{{ end }}
{{ $page.Date.Format "2006"}}
{{/* moment-main-content */}}
{{/* top mark */}} {{ if gt $page.Params.top 0}}
{{ end }} {{/* user info */}}
{{/* tag */}} {{ $tags_filtered := slice }} {{ with $page.Params.tags }} {{ range . }} {{ with .}} {{ $tags_filtered = $tags_filtered | append . }} {{ end }} {{ end }} {{ end }} {{ with $tags_filtered }}
{{ range . }}
{{ trim . " " }}
{{ end }}
{{ end }} {{/* Main text content */}} {{ if .Site.Params.features.heti }}
{{ else }}
{{ 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 }} 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 $page.Params.pic }} Responsive image {{ 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 */}}

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

{{ if $.site.Params.experimental.comment }}
{{ end }}
{{ if $.site.Params.experimental.comment }} {{ end }}