website/themes/terminal-plus-minus/layouts/partials/search_item.json
2019-09-02 01:51:06 +08:00

8 lines
320 B
JSON

{{- 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 -}}