feature(doc): complete all Chinese and English documents and fix many bugs

This commit is contained in:
Dillon
2020-03-08 21:02:21 +08:00
parent b1f2de1987
commit 296424cded
76 changed files with 13278 additions and 2445 deletions

View File

@@ -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 -}}