fix mixture of permanent and relative links
This commit is contained in:
parent
c2f250eb4c
commit
69454848ea
|
@ -10,7 +10,7 @@
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ range $widths -}}
|
{{ range $widths -}}
|
||||||
{{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}}
|
{{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
|
||||||
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
|
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
|
||||||
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
|
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@hyas/doks",
|
"name": "@hyas/doks",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.13",
|
"@babel/cli": "^7.13",
|
||||||
|
|
Loading…
Reference in New Issue