Skip to content

Commit 6ad4ac1

Browse files
committed
update image
1 parent 32b9b45 commit 6ad4ac1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layouts/_default/index.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{- $.Scratch.Add "index" slice -}}
22
{{- range site.RegularPages -}}
3-
{{ $image := .Params.image }}
4-
{{ if hasPrefix $image "http" }}{{- else }} {{ $image = print .Site.BaseURL .Params.image -}}{{ end -}}
3+
{{- $image := .Params.image -}}
4+
{{- if hasPrefix $image "http" -}}{{- else -}} {{- $image = print .Site.BaseURL .Params.image -}}{{- end -}}
55
{{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
6-
{{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006-01-02") "image" ((print $image ) | absURL)) -}}
6+
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006-01-02") "image" ((print $image ) | absURL)) -}}
77
{{- end }}
88
{{- end -}}
99
{{- $.Scratch.Get "index" | jsonify -}}

0 commit comments

Comments
 (0)