-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable linked images by default
- Loading branch information
1 parent
945593e
commit 9e7d099
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{{- $lightgallery := .Page.Params.lightgallery | default site.Params.Page.lightgallery | default false -}} | ||
{{- if .Title -}} | ||
<figure> | ||
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/image.html" -}} | ||
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" $lightgallery "Resources" .Page.Resources | partial "plugin/image.html" -}} | ||
<figcaption class="image-caption"> | ||
{{- .Title | safeHTML -}} | ||
</figcaption> | ||
</figure> | ||
{{- else -}} | ||
<figure> | ||
{{- dict "Src" .Destination "Title" .Text "Linked" true "Resources" .Page.Resources | partial "plugin/image.html" -}} | ||
{{- dict "Src" .Destination "Title" .Text "Linked" $lightgallery "Resources" .Page.Resources | partial "plugin/image.html" -}} | ||
</figure> | ||
{{- end -}} |
9e7d099
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
do-it – ./
do-it-git-main-pcloud.vercel.app
hugodoit.com
www.hugodoit.com
do-it-green.vercel.app
do-it-pcloud.vercel.app