diff --git a/assets/js/index.js b/assets/js/index.js
index 2e0c542..26f78b7 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -103,7 +103,11 @@ Source:
id: {{ $index }},
href: "{{ .RelPermalink }}",
title: {{ .Title | jsonify }},
- description: {{ .Params.description | jsonify }},
+ {{ with .Description -}}
+ description: {{ . | jsonify }},
+ {{ else -}}
+ description: {{ .Summary | plainify | jsonify }},
+ {{ end -}}
content: {{ .Content | jsonify }}
})
{{ if ne (add $index 1) $len -}}
diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html
index 29aaef3..ac31d72 100644
--- a/layouts/partials/head/seo.html
+++ b/layouts/partials/head/seo.html
@@ -19,7 +19,11 @@
{{ with .Description -}}
{{ else -}}
-
+ {{ with .Summary | plainify -}}
+
+ {{ else -}}
+
+ {{ end -}}
{{ end -}}
{{ if $.Scratch.Get "paginator" }}