File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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 - }}
35 {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
4- {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006-01-02") "image" {{- if hasPrefix .Params.image `http` } (( print .Params. image )) {{- else - } }((print .Site.BaseURL .Params.image) | absURL)) {{ end -}} -}}
6+ {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006-01-02") "image" (( print $ image ) | absURL)) - }}
57 {{- end }}
68{{- end - }}
79{{- $.Scratch.Get "index" | jsonify - }}
You can’t perform that action at this time.
0 commit comments