mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 01:21:04 +01:00
e3c30b4e41
Allows adding in-line-text images usage in page.md => This image is inlined {{< inTextImg.html url="image.png" >}} here. optional args: - height - alt
5 lines
182 B
HTML
5 lines
182 B
HTML
{{- $Img := (.Get "url") }}
|
|
{{- $height := (.Get "height") }}
|
|
{{- $alt := (.Get "alt") }}
|
|
|
|
<img class="in-text" height="{{ $height | default `15px` }}" src="{{$Img}}" alt="{{$alt}}"> |