Welcome to mirror list, hosted at ThFree Co, Russian Federation.

local-img.html « shortcodes « layouts - github.com/rafed/ramium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fe9e5273fcedf1ac63b9589b5bea14a63a0efa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ if .IsNamedParams }}

<figure>
    <img src="{{.Get "src" | relURL }}" 
        {{ if .Get "caption" }}
            alt="{{.Get "caption"}}"
        {{ end }}
    >
    {{ if .Get "caption" }}
        <figcaption>{{.Get "caption"}}</figcaption>
    {{ end }}
</figure>

{{ end }}