File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1+ {{- if .data.target -}}< a href ="{{ .data.target }} "> {{- end -}}
2+ < img src ="{{ .data.src }} " alt ="{{ .data.alt }} "
3+ {{- with .data.align }} class ="align-{{ . }} "{{ end -}}
4+ {{- with .data.width }} width ="{{ . }} "{{ end -}}
5+ {{- with .data.height }} height ="{{ . }} "{{ end -}}
6+ >
7+ {{- if .data.target }}</ a > {{ end -}}
Original file line number Diff line number Diff line change 3434*/}}
3535
3636{{- $data := .Inner | transform.Unmarshal -}}
37- {{- if $data.target -}}< a href ="{{ $data.target }} "> {{- end -}}
38- < img src ="{{ $data.src }} " alt ="{{ $data.alt }} "
39- {{- with $data.align }} class ="align-{{ . }} "{{ end -}}
40- {{- with $data.width }} width ="{{ . }} "{{ end -}}
41- {{- with $data.height }} height ="{{ . }} "{{ end -}}
42- >
43- {{- if $data.target }}</ a > {{ end -}}
37+ {{- partial "_elements/image.html" (dict "data" $data) -}}
You can’t perform that action at this time.
0 commit comments