-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
344 additions
and
824 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
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,6 +1,17 @@ | ||
# Images | ||
imageResponsive = true | ||
imageConvertTo = "webp" | ||
imageImageSizes = ["480","720","1080","1280","1600","2048"] | ||
singleSize = false | ||
imageAddClass = " img-fluid lazyload blur-up" | ||
# lazyimg | ||
[lazyimg] | ||
resizer = "auto" | ||
renderer = "lqip-webp" | ||
|
||
# Resizer options: | ||
lqipSize = "120x Gaussian" | ||
maxSize = "1920x" | ||
responsiveSizes = [ "320x", "640x", "768x", "1024x", "1366x", "1600x", "1920x" ] | ||
resizeOptions = "Lanczos q95" | ||
|
||
# Renderer options: | ||
class = "img-fluid" | ||
# alt = "" | ||
noscript = true | ||
|
||
errorHandler = "warning" |
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,6 +1,8 @@ | ||
{{- $markdownImageLinkClass := .Page.Params.imageMarkdownLinkClass | default .Page.Site.Params.imageMarkdownLinkClass -}} | ||
{{- $markdownImageClass := .Page.Params.imageMarkdownClass | default .Page.Site.Params.imageMarkdownClass -}} | ||
{{- $markdownImageWrapper := .Page.Params.imageMarkdownAddWrapper | default .Page.Site.Params.imageMarkdownAddWrapper -}} | ||
{{- $image := partial "helpers/lib/image-handling/find-image-src" (dict "src" .Destination "page" .Page "getRelative" true "ignoreBundleAssets" false) -}} | ||
{{- partial "helpers/wrapped-image" (dict "alt" .Text "altRendered" true "title" .Title "image" $image "page" .Page "noImageWrapper" (not $markdownImageWrapper) "linkClass" $markdownImageLinkClass "class" $markdownImageClass) -}} | ||
{{- /* Remove trailing newlines */ -}} | ||
{{ $img := .Destination }} | ||
{{ $alt := .Text -}} | ||
{{ $params := (dict "img" $img "alt" $alt) -}} | ||
{{ if not (resources.Get $params.img) -}} | ||
{{ $params = merge $params (dict "img" (.Page.Resources.GetMatch $params.img)) -}} | ||
{{ end -}} | ||
|
||
{{ partial "lazyimg" $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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ errorf "image path './assets/%s' does not exist. please check the 'assets' directory." .img }} |
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,12 @@ | ||
{{ $params := . }} | ||
{{ $url := .img | absURL }} | ||
{{ warnf "image path './assets/%s' does not exist. trying remote get via %s" .img $url }} | ||
{{ $res := false }} | ||
{{ with $resource := resources.GetRemote $url }} | ||
{{ with .Err }} | ||
{{ warnf "could not get remotely: %s: %#v" .Error .Data }} | ||
{{ else }} | ||
{{ $res = merge $params (dict "img" $resource) }} | ||
{{ end }} | ||
{{ end }} | ||
{{ return $res }} |
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 @@ | ||
{{ warnf "image path './assets/%s' does not exist. please check the 'assets' directory." .img }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
layouts/partials/helpers/lib-output/image-handling/img-element.html
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
layouts/partials/helpers/lib-output/image-handling/source-element.html
This file was deleted.
Oops, something went wrong.
123 changes: 0 additions & 123 deletions
123
layouts/partials/helpers/lib-output/image-handling/thumbnail-or-full-picture.html
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
layouts/partials/helpers/lib/image-handling/find-featured-images.html
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
layouts/partials/helpers/lib/image-handling/find-image-maps.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.