{{ $file := .file }} {{ $context := .context }} {{ with $context.Resources.GetMatch $file }}
{{ .Title }}
{{ .Content }}
{{ if .Params.sticky_notes }}
{{ range $index, $note := .Params.sticky_notes }} {{ if lt $index 3 }}
{{ $note.text | markdownify }}
{{ end }} {{ end }}
{{ end }} {{ if .Params.media_items }}
{{ range $index, $item := .Params.media_items }} {{ if lt $index 6 }} {{ $image := resources.Get $item.image }} {{ if $image }} {{ $resized := $image.Fit "240x360" }}
{{ $item.title }} {{ if $item.current }}
NOW
{{ end }}
{{ end }} {{ end }} {{ end }}
{{ end }}
{{ end }}