mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-28 23:53:20 -05: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}}"> |