diff options
author | Chen Xianmin <xianmin12@gmail.com> | 2019-01-10 10:27:48 +0300 |
---|---|---|
committer | Chen Xianmin <xianmin12@gmail.com> | 2019-01-10 10:27:48 +0300 |
commit | f2dc3ff445e459f698976995bdba24376f5d4e7f (patch) | |
tree | 4e106b84654069718d63c614bcfc14429cdee441 /layouts | |
parent | 0d759e3fd71bf724c3b307c6d5a4be5fa8903cf8 (diff) |
fix: full url parsing error in gallery shortcode (#163)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/figure.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 3d62f68..db4f4a7 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -12,7 +12,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ <figure {{ with .Get "class" }} class="{{.}}" {{ end }} itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" {{ with .Get "width" }} style="max-width:{{.}}" {{end}}> - <div class="img"{{ if .Parent }} style="background-image: url('{{ print .Site.BaseURL $thumb }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}> + <div class="img"{{ if .Parent }} style="background-image: url('{{ print $thumb }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}> <img itemprop="thumbnail" src="{{ $thumb }}" {{ with .Get "alt" | default (.Get "caption") }}alt="{{.}}"{{ end }}/><!-- <img> hidden if in .gallery --> </div> {{ with .Get "link" | default (.Get "src") }}<a href="{{.}}" itemprop="contentUrl"></a>{{ end }} |