fix mixture of permanent and relative links

This commit is contained in:
Mike Pianka 2021-04-16 09:45:29 -04:00
parent c2f250eb4c
commit 69454848ea
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
{{ end -}}
{{ range $widths -}}
{{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}}
{{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
{{ end -}}

2
package-lock.json generated
View File

@ -6,7 +6,7 @@
"packages": {
"": {
"name": "@hyas/doks",
"version": "0.2.2",
"version": "0.2.3",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.13",