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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-03-08 16:02:21 +0300
committerDillon <dillonzq@outlook.com>2020-03-08 16:02:21 +0300
commit296424cded8ad1d548f7e3f891ef1f492b3f85b6 (patch)
tree242e33b08f2538e4c5341e39d730d1a6f479de8e /layouts/_default/_markup
parentb1f2de1987507c5c9f757b6da7bfb0593ebd3804 (diff)
feature(doc): complete all Chinese and English documents and fix many bugs
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r--layouts/_default/_markup/render-image.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 7c7e389..cfe5ed3 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,9 +1,10 @@
-<figure>
- {{- $lightgallery := ne .Page.Site.Params.page.lightgallery false | and (ne .Page.Params.lightgallery false) -}}
- {{- partial "plugin/image.html" (dict "src" .Destination "title" .Title "description" .Text "lightgallery" $lightgallery "scratch" (.Page.Scratch.Get "scratch")) -}}
- {{- with (.Title | default .Text) -}}
+{{- with .Title -}}
+ <figure>
+ {{- partial "plugin/image.html" (dict "src" $.Destination "title" $.Title "description" $.Text "lightgallery" true "scratch" ($.Page.Scratch.Get "scratch")) -}}
<figcaption class="image-caption">
{{- . | safeHTML -}}
</figcaption>
- {{- end -}}
-</figure>
+ </figure>
+{{- else -}}
+ {{- partial "plugin/image.html" (dict "src" .Destination "title" .Title "description" .Text "lightgallery" false "scratch" (.Page.Scratch.Get "scratch")) -}}
+{{- end -}}