Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2019-01-10 10:27:48 +0300
committerChen Xianmin <xianmin12@gmail.com>2019-01-10 10:27:48 +0300
commitf2dc3ff445e459f698976995bdba24376f5d4e7f (patch)
tree4e106b84654069718d63c614bcfc14429cdee441 /layouts
parent0d759e3fd71bf724c3b307c6d5a4be5fa8903cf8 (diff)
fix: full url parsing error in gallery shortcode (#163)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/figure.html2
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 }}