diff options
author | uPagge <git@upagge.ru> | 2021-02-26 14:14:06 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-02-26 14:14:06 +0300 |
commit | 8be051393c36fa8427cf21a843129af991df6556 (patch) | |
tree | 5411a98d17d273dc16d95ffed6ef926bda56d80b /layouts/_default/_markup | |
parent | ad7ecb45c50b5ab98447340b77b6889347ba88c4 (diff) |
hugo gc
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r-- | layouts/_default/_markup/render-image.html | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 5fa8bc8..07f34c2 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -6,27 +6,15 @@ {{- end -}} {{ $imageOriginal := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }} -{{ $imagePlug := "" }} -{{ with $imageOriginal }} -{{ $imagePlug = .Resize "900x jpg q5" }} -{{ end }} <div style="text-align: center"> {{- if $figcap -}} <figure> - {{ if ne $imageOriginal nil }} - {{- dict "Src" .Destination "Title" $figcap "Alt" $alt "Caption" $caption "Linked" true "Resources" .Page.Resources "ImagePlug" $imagePlug.RelPermalink | partial "plugin/image.html" -}} - {{ else }} {{- dict "Src" .Destination "Title" $figcap "Alt" $alt "Caption" $caption "Linked" true "Resources" .Page.Resources | partial "plugin/image.html" -}} - {{ end }} <figcaption class="image-caption"> {{- $figcap | safeHTML -}} </figcaption> </figure> {{- else -}} -{{ if ne $imageOriginal nil }} -{{- dict "Src" .Destination "Title" (path.Base .Destination) "Alt" $alt "Resources" .Page.Resources "ImagePlug" $imagePlug.RelPermalink | partial "plugin/image.html" -}} -{{ else }} {{- dict "Src" .Destination "Title" (path.Base .Destination) "Alt" $alt "Resources" .Page.Resources | partial "plugin/image.html" -}} -{{ end }} {{- end -}} </div> |