 thumbnail image -->
{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }}
<div class="box{{ with .Get " caption-position" }} fancy-figure caption-position-{{.}}{{end}}{{ with
  .Get "caption-effect" }} caption-effect-{{.}}{{end}}" {{ with .Get "width" }}style="max-width:{{.}}" {{end}}>
  <figure {{ with .Get "class" }}class="{{.}}" {{ end }} itemprop="associatedMedia" itemscope
    itemtype="http://schema.org/ImageObject">
    <div class="img" {{ if .Parent }} styl