generated from hbstack/template-mod
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename the images site parameter to hugomods.images (#27)
Fixes #26
- Loading branch information
Showing
3 changed files
with
29 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- $default := dict | ||
"class_name" "img-fluid" | ||
"alignment_center_class_name" "d-block text-center" | ||
"alignment_start_class_name" "float-start me-2" | ||
"alignment_end_class_name" "float-end ms-2" | ||
"figure_class_name" "figure" | ||
"figure_caption_class_name" "figure-caption" | ||
"figure_image_class_name" "figure-img" | ||
"modern_format" "webp" | ||
}} | ||
{{- $params := default dict site.Params.hugomods.images }} | ||
{{- with site.Params.images }} | ||
{{- if reflect.IsMap . }} | ||
{{- warnf "[images] please rename the images site parameter to hugomods.images, since it's conflict with some internal templates, see https://github.com/hugomods/images/issues/26." }} | ||
{{- $params = . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- return merge $default $params }} |
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