Skip to content

Commit

Permalink
fix: use page description as summary if present
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 28, 2023
1 parent 4c80a66 commit bd6dc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/search/index.json.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- $page := . -}}
{{- $item := newScratch -}}
{{- $item.Set "title" .Title -}}
{{- $item.Set "summary" (.Summary | plainify) -}}
{{- $item.Set "summary" (default .Summary .Description | plainify) -}}
{{- if $indexContent }}
{{- $item.Set "content" .Plain }}
{{- end }}
Expand Down

0 comments on commit bd6dc23

Please sign in to comment.