Moving various things around and fixing some links
This commit is contained in:
@@ -44,6 +44,9 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
|
||||
|
||||
<div class="box{{ with .Get "caption-position" }} fancy-figure caption-position-{{.}}{{end}}{{ with .Get "caption-effect" }} caption-effect-{{.}}{{end}}" {{ with .Get "width" }}style="max-width:{{.}}"{{end}}>
|
||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end }} itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
||||
<!-- Prepending ../.. below is a hack to get around
|
||||
https://github.com/gohugoio/hugo/issues/2744 when I don't
|
||||
feel like setting baseURL and using absolute URLs. -->
|
||||
<div class="img"{{ if .Parent }} style="background-image: url('../..{{ $thumb }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}>
|
||||
<img itemprop="thumbnail" src="{{ $thumb }}" {{ with .Get "alt" | default (.Get "caption" | markdownify) }}alt="{{.}}"{{ end }}/><!-- <img> hidden if in .gallery -->
|
||||
</div>
|
||||
|
||||
3
layouts/shortcodes/rawhtml.html
Normal file
3
layouts/shortcodes/rawhtml.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!-- begin raw html -->
|
||||
{{.Inner}}
|
||||
<!-- end raw html -->
|
||||
Reference in New Issue
Block a user