File tree Expand file tree Collapse file tree
themes/math-gallery-theme/layouts/shortcodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33{{ else }}
44< figure class ="media-figure "{{ with .Get "id" }} id="{{ . }} "{{ end }} >
55{{ end }}
6- < img src ="{{ . Get "src " }}"
6+ < img src ="{{ site.Home.RelPermalink }}{{ . Get "src " | strings.TrimPrefix "/ " }}"
77 alt="{{ with .Get "caption " }}{{ . }}{{ end }}"
88 loading="lazy " />
99 {{ with .Get "caption" }}< figcaption > {{ . }}</ figcaption > {{ end }}
Original file line number Diff line number Diff line change 44< figure class ="media-figure "{{ with .Get "id" }} id="{{ . }} "{{ end }} >
55{{ end }}
66 < video controls >
7- < source src ="{{ . Get "src " }}" type="{{ with .Get "type " }}{{ . }}{{ else }}video/mp4{{ end }}">
7+ < source src ="{{ site.Home.RelPermalink }}{{ . Get "src " | strings.TrimPrefix "/ " }}" type="{{ with .Get "type " }}{{ . }}{{ else }}video/mp4{{ end }}">
88 Your browser does not support the video tag.
99 </ video >
1010 {{ with .Get "caption" }}< figcaption > {{ . }}</ figcaption > {{ end }}
You can’t perform that action at this time.
0 commit comments