forked from BgLUG/bglug.it
fix img
This commit is contained in:
parent
2b9362aef6
commit
38de799447
@ -1,5 +1,7 @@
|
||||
<div>
|
||||
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
|
||||
|
||||
{{- $imgsrc := .Page.Resources.GetMatch (.Get "src") -}}
|
||||
<img src="{{ $imgsrc.RelPermalink }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
|
||||
|
||||
<figcaption>
|
||||
{{ if strings.HasPrefix (.Get "source") "http" }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user