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

@@ -2,13 +2,15 @@
{{- $options := .Get "src" | dict "src" -}}
{{- $options = .Get "src_s" | dict "src_s" | merge $options -}}
{{- $options = .Get "src_l" | dict "src_l" | merge $options -}}
{{- $options = .Get "title" | dict "title" | merge $options -}}
{{- $options = .Get "description" | dict "description" | merge $options -}}
{{- $title := .Get "title" | $.Page.RenderString -}}
{{- $options = $title | dict "title" | merge $options -}}
{{- $description := .Get "description" | $.Page.RenderString -}}
{{- $options = $description | dict "description" | merge $options -}}
{{- $lightgallery := ne .Page.Site.Params.page.lightgallery false | and (ne .Page.Params.lightgallery false) -}}
{{- $options = $lightgallery | dict "lightgallery" | merge $options -}}
{{- $options = .Page.Scratch.Get "scratch" | dict "scratch" | merge $options -}}
{{- partial "plugin/image.html" $options -}}
{{- with (.Get "title" | default .Get "description") -}}
{{- with $title | default $description -}}
<figcaption class="image-caption">
{{- . | safeHTML -}}
</figcaption>