github.com/SDLMoe/hugo@v0.47.1/tpl/tplimpl/embedded/templates/shortcodes/figure.html (about)

     1  <!-- image -->
     2  <figure{{ with .Get "class" }} class="{{.}}"{{ end }}>
     3      {{ if .Get "link"}}<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>{{ end }}
     4          <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{ with .Get "width" }}width="{{.}}" {{ end }}{{ with .Get "height" }}height="{{.}}" {{ end }}/>
     5      {{ if .Get "link"}}</a>{{ end }}
     6      {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
     7      <figcaption>{{ if isset .Params "title" }}
     8          <h4>{{ .Get "title" }}</h4>{{ end }}
     9          {{ if or (.Get "caption") (.Get "attr")}}<p>
    10          {{ .Get "caption" }}
    11          {{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
    12              {{ .Get "attr" }}
    13          {{ if .Get "attrlink"}}</a> {{ end }}
    14          </p> {{ end }}
    15      </figcaption>
    16      {{ end }}
    17  </figure>
    18  <!-- image -->