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

This commit is contained in:
MultiMote 2023-01-07 11:09:28 +03:00
parent 9ee09e5cd8
commit b3e8344d93
2 changed files with 5 additions and 5 deletions

View File

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

View File

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