redesign 2023
This commit is contained in:
11
themes/FixIt/layouts/_default/_markup/render-image.html
Normal file
11
themes/FixIt/layouts/_default/_markup/render-image.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- if .Title -}}
|
||||
<figure>
|
||||
{{- dict "Src" .Destination "Alt" .Text "Caption" .Text "Title" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/image.html" -}}
|
||||
<figcaption class="image-caption">
|
||||
{{- .Text | safeHTML -}}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{- else -}}
|
||||
{{- $linked := (eq .Page.Site.Params.page.lightgallery "force") | or (eq .Page.Params.lightgallery "force") -}}
|
||||
{{- dict "Src" .Destination "Alt" .Text "Linked" $linked "Resources" .Page.Resources | partial "plugin/image.html" -}}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user