{{ $thumb := "/img/logo.png" | absURL }} {{ if .Params.image }} {{ $thumb = .Params.image | absURL }} {{ else if .Params.howlongtobeat_id }} {{ $thumb = (printf "%scover.jpg" .Page.Permalink) | absURL }} {{ else }} {{ $perm := .Permalink }} {{ $base := .Site.BaseURL }} {{ $match := findRE `!\[(.*)\]\((.+).(jpg|png|gif)` .RawContent 1 }} {{ range $match }} {{ $relthumb := replaceRE `!\[(.*)\]\(` "" . }} {{ if hasPrefix $relthumb "/" }} {{ $thumb = printf "%s%s" $base $relthumb }} {{ else }} {{ $thumb = printf "%s%s" $perm $relthumb }} {{ end }} {{ end }} {{ end }} thumbnail of {{ .Title }}

{{ .Title }}

{{ if .Date }} {{ .Date.Format (.Site.Params.dateFormat | default "02/01/2006") | $.Scratch.Set "subtitle" }} {{ $.Scratch.Get "subtitle" }} {{ end }}

{{ if isset .Params "score" }}{{ partial "scorelabel" . }} |{{ end }} {{ .Summary | truncate 150 }}