use permalink for page bundle images
This commit is contained in:
parent
3706ace5e8
commit
49eb66136e
7 changed files with 7 additions and 7 deletions
|
|
@ -9,7 +9,7 @@
|
|||
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
||||
{{ $image = .Params.Image }}
|
||||
{{ else }}
|
||||
{{ $image = path.Join "/" (path.Join .File.Dir .Params.Image) }}
|
||||
{{ $image = print .Permalink "/" .Params.Image }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $mscratch.Add "articles" (dict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue