' заменены на "
This commit is contained in:
parent
64369623e5
commit
4ec1ff26e0
@ -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 -}}
|
||||
|
||||
|
@ -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}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user