File tree Expand file tree Collapse file tree
themes/math-gallery-theme/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 < a href ="{{ .RelPermalink }} ">
3030 < div class ="post-thumbnail ">
3131 {{ if .Params.thumbnail }}
32- < img src ="{{ .Params.thumbnail }} " alt ="{{ .Title }} " loading ="lazy " />
32+ < img src ="{{ .Params.thumbnail | relURL }} " alt ="{{ .Title }} " loading ="lazy " />
3333 {{ else }}
3434 {{ $default := resources.Get "images/default-thumbnail.svg" }}
3535 < img src ="{{ $default.RelPermalink }} " alt ="{{ .Title }} " loading ="lazy " />
Original file line number Diff line number Diff line change 33 <!-- Thumbnail -->
44 {{ with .Params.thumbnail }}
55 < div class ="post-hero ">
6- < img src ="{{ . }} " alt ="{{ $.Title }} " />
6+ < img src ="{{ . | relURL }} " alt ="{{ $.Title }} " />
77 </ div >
88 {{ end }}
99
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 ="{{ .Get "src " | relURL }}"
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 ="{{ .Get "src " | relURL }}" 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