Hackerspace Website (Klon wg. Rechte)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
private_mirror/layouts/shortcodes/image.html

10 lines
321 B

{{ $size := or (.Get "size") "800x600 q90" }}
{{ $class := or (.Get "class") "pure-u-1" }}
{{ $src := .Get "src" }}
{{ $alt := .Get "alt" }}
{{ with .Page.Resources.GetMatch $src }}
{{ $src = (.Fit $size).Permalink }}
{{ end }}
<div class="{{ $class }}">
<img class="pure-img" src="{{ $src }}" alt="{{ $alt }}">
</div>