From 863df1c867d65883e4f3658593ef23e125058eb5 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 16 May 2022 08:54:23 +0200 Subject: Reduce description linght --- layouts/partials/description.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'layouts/partials') diff --git a/layouts/partials/description.html b/layouts/partials/description.html index ff3b697..b2100a8 100644 --- a/layouts/partials/description.html +++ b/layouts/partials/description.html @@ -12,4 +12,8 @@ {{- end -}} {{- end -}} -{{- replaceRE "\n" " " ($description | plainify | safeHTML | chomp | truncate 180) -}} +{{- /* Meta descriptions can technically be any length, but Google generally + truncates snippets to ~155-160 characters. It's best to keep meta descriptions + long enough that they're sufficiently descriptive, so we recommend descriptions + between 50 and 160 characters. */ -}} +{{- replaceRE "\n" " " ($description | plainify | safeHTML | chomp | truncate 160) -}} -- cgit v1.2.3