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