Skip to content

Commit 7433e98

Browse files
fix the broken url;
1 parent 1a2d1dc commit 7433e98

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

themes/math-gallery-theme/layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
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" />

themes/math-gallery-theme/layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

themes/math-gallery-theme/layouts/shortcodes/img.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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 }}

themes/math-gallery-theme/layouts/shortcodes/video.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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 }}

0 commit comments

Comments
 (0)