' заменены на "

This commit is contained in:
MultiMote 2023-01-07 11:09:28 +03:00
parent 64369623e5
commit 4ec1ff26e0
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
{{/* Remote image */ -}}
{{ if or (hasPrefix .Destination "https://") (hasPrefix .Destination "http://") }}
<a class="spotlight" data-title="{{ .Title | default "false" }}" href="{{ .Destination | safeURL }}" >
<img src='{{ .Destination | safeURL }}' alt="{{.Text}}" />
<img src="{{ .Destination | safeURL }}" alt="{{.Text}}" />
</a>
{{/* Local image */ -}}
{{ else }}
@ -11,13 +11,13 @@
{{ if $img -}}
<a class="spotlight" data-title="{{ .Title | default "false" }}" href="{{ $img.RelPermalink | safeURL }}" >
{{ if in $resizeMimes $img.MediaType.Type -}}
<img src='{{ ($img.Fit "1024x1024").RelPermalink | safeURL }}' alt="{{.Text}}" />
<img src="{{ ($img.Fit "1024x1024").RelPermalink | safeURL }}" alt="{{.Text}}" />
{{- else -}}
<img src='{{ $img.RelPermalink | safeURL }}' alt="{{.Text}}" />
<img src="{{ $img.RelPermalink | safeURL }}" alt="{{.Text}}" />
{{- end -}}
</a>
{{- else -}}
<img src='/images/image-error.png' alt="{{.Text}}" />
<img src="/images/image-error.png" alt="{{.Text}}" />
{{- end -}}
{{- end -}}

View File

@ -13,7 +13,7 @@
{{- $thumb := .Page.Resources.Get .Params.featured_image -}}
{{if $thumb}}
<a href="{{.RelPermalink}}">
<img class="thumb" src='{{ ($thumb.Fit "150x150").RelPermalink }}'>
<img class="thumb" src="{{ ($thumb.Fit "150x150").RelPermalink }}">
</a>
{{end}}