From 6d32177798459d6c96c381cd8f77bae3b1736dff Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Mon, 13 Dec 2021 13:31:07 +0900 Subject: [PATCH] deps: bump hugo from 0.90.0 to 0.90.1 (#446) --- exampleSite/.hugo_build.lock | 0 layouts/_default/_markup/render-image.html | 76 ++++++++++++---------- layouts/partials/eyecatch.html | 72 ++++++++++---------- layouts/partials/head/ogp.html | 8 ++- layouts/shortcodes/circle.html | 76 ++++++++++++---------- 5 files changed, 124 insertions(+), 108 deletions(-) create mode 100644 exampleSite/.hugo_build.lock diff --git a/exampleSite/.hugo_build.lock b/exampleSite/.hugo_build.lock new file mode 100644 index 000000000..e69de29bb diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index b4a6a721a..0c270c2c5 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -14,48 +14,52 @@ {{ end }} {{ with resources.Get $imagePath }} - {{ $image := . }} + {{ with .Err }} + {{ warnf "%s" . }} + {{ else }} + {{ $image := . }} - {{ $smallJPG := $image }} - {{ $mediumJPG := $image }} - {{ $largeJPG := $image }} + {{ $smallJPG := $image }} + {{ $mediumJPG := $image }} + {{ $largeJPG := $image }} - {{ $smallWebP := $image }} - {{ $mediumWebP := $image }} - {{ $largeWebP := $image }} + {{ $smallWebP := $image }} + {{ $mediumWebP := $image }} + {{ $largeWebP := $image }} - {{ $smallJPG = $image.Resize "480x jpg" }} - {{ $mediumJPG = $image.Resize "768x jpg" }} - {{ $largeJPG = $image.Resize "1024x jpg" }} + {{ $smallJPG = $image.Resize "480x jpg" }} + {{ $mediumJPG = $image.Resize "768x jpg" }} + {{ $largeJPG = $image.Resize "1024x jpg" }} - {{ if hugo.IsExtended }} - {{ $smallWebP = $image.Resize "480x webp" }} - {{ $mediumWebP = $image.Resize "768x webp" }} - {{ $largeWebP = $image.Resize "1024x webp" }} - {{ end }} + {{ if hugo.IsExtended }} + {{ $smallWebP = $image.Resize "480x webp" }} + {{ $mediumWebP = $image.Resize "768x webp" }} + {{ $largeWebP = $image.Resize "1024x webp" }} + {{ end }} -
- - {{ if hugo.IsExtended }} - - - - {{ end }} +
+ + {{ if hugo.IsExtended }} + + + + {{ end }} - - - - {{ $caption }} - - {{ with $caption }} -
{{ . }}
- {{ end }} -
+ + + + {{ $caption }} +
+ {{ with $caption }} +
{{ . }}
+ {{ end }} +
+ {{ end }} {{ else }}
- - {{ if hugo.IsExtended }} - - - - {{ end }} - - - - - {{ $.Params.Description }} - -
+
+ + {{ if hugo.IsExtended }} + + + + {{ end }} + + + + + {{ $.Params.Description }} + +
+ {{ end }} {{ else }}
-
- - {{ if hugo.IsExtended }} - - - - {{ end }} +
+
+ + {{ if hugo.IsExtended }} + + + + {{ end }} - - - - {{ $alt | safeHTMLAttr }} - -
-
+ + + + {{ $alt | safeHTMLAttr }} +
+
+
+ {{ end }} {{ else }}