Back to Materialize

Figure

doc/user/layouts/shortcodes/figure.html

123696 B
Original Source

{{/* A copy of the built-in figure shortcode that properly runs the provided image src through relURL. */}} {{- if .Get "link" -}} {{- end }} {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} _{{ with (.Get "title") -}} {{ . }} {{- end -}} {{- if or (.Get "caption") (.Get "attr") -}} {{- .Get "caption" | $.Page.RenderString -}} {{- with .Get "attrlink" }}

            {{- end -}}
            {{- .Get "attr" | $.Page.RenderString -}}
            {{- if .Get "attrlink" }}{{ end }}
        {{- end }}_

{{- end }}