🏗️ Change URLs to be relative instead of absolute

This commit is contained in:
James Panther
2021-08-26 09:44:41 +10:00
parent 1a69b5fd39
commit f6dceb6233
13 changed files with 23 additions and 23 deletions
+1 -3
View File
@@ -4,7 +4,7 @@
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
{{- end -}}
<img src="{{ $image.Permalink }}"
<img src="{{ $image.RelPermalink }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
{{- end -}}
@@ -25,5 +25,3 @@
{{- end }}
</figure>
{{ end }}