website/themes/terminal-plus-minus/layouts/partials/search_item.json

8 lines
320 B
JSON
Raw Normal View History

2019-09-01 17:51:06 +00:00
{{- if .IsPage -}}
{
"name": "{{ .Title }}",
"description": "{{ with .Params.description }}{{ plainify . | replaceRE "\n" "$1" | replaceRE "\\\\" "\\\\" | htmlEscape }}{{ else }}{{ replaceRE "\\\\" "\\\\" .Summary | plainify | replaceRE "\n" "$1" | htmlEscape }}{{ end }}",
"url": "{{ .Permalink }}"
}
{{- end -}}