hugo-page-test/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html

12 lines
350 B
HTML
Raw Normal View History

<!--
<p>{{ page.Resources }}</p>
<p>Page: {{ page }}</p>
{{ .Get "src"}}
Scratch: {{ page.Scratch.Get "article" }}
<p>[{{/* $article.Resources */}}]</p>
-->
<div class="press-img">
{{- $res := .Page.Resources.GetMatch (.Get "src") -}}
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}">
</div>