diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-19 07:35:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 07:35:37 +0300 |
commit | 774e831a210e44aeca9848eb0d636aae5af009dd (patch) | |
tree | 317e02755f373860127d0aa783f84d1b0f0c16da /layouts/_default/_markup | |
parent | 84d48f37dcf35e9f414445e1eed3489c674fe1af (diff) |
feat(shortcode): refactor and improve image shortcode (#187)
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r-- | layouts/_default/_markup/render-image.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 6f3320a..bf7c6f8 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,10 +1,10 @@ {{- with .Title -}} <figure> - {{- partial "plugin/image.html" (dict "src" $.Destination "title" $.Title "description" $.Text "lightgallery" true "scratch" ($.Page.Scratch.Get "scratch")) -}} + {{- partial "plugin/image.html" (dict "src" $.Destination "alt" $.Text "caption" . "linked" true) -}} <figcaption class="image-caption"> {{- . | safeHTML -}} </figcaption> </figure> {{- else -}} - {{- partial "plugin/image.html" (dict "src_s" .Destination "title" .Title "description" .Text "lightgallery" false "scratch" (.Page.Scratch.Get "scratch")) -}} + {{- partial "plugin/image.html" (dict "src" .Destination "alt" .Text) -}} {{- end -}} |