diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bed8e98..af17ac6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,19 @@ {{ define "main" }}
-
- +
+ {{ with .Params.img_url }} + {{ $img := . }} + {{ if strings.HasPrefix $img "http://" -}} + + + {{ else if strings.HasPrefix $img "https://" -}} + + + {{ else -}} + + + {{ end }} + {{ end }}

{{ .Params.title }}