Lego2012
7/25/2017 - 8:46 AM

Scratch Example

Scratch Example

{{ with $.Site.Params.imagespath }} {{ $.Scratch.Set "path" ( . ) }} {{ else }}{{ $.Scratch.Set "path" "/images/" }}{{ end }}

<div class="box box--column box--image">
  <img src="{{ $.Scratch.Get "path" }}{{ .Get "filename" }}" />
</div>