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

8 lines
220 B
HTML
Raw Normal View History

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