diff options
Diffstat (limited to 'layouts/partials/description.html')
| -rw-r--r-- | layouts/partials/description.html | 6 |
1 files changed, 5 insertions, 1 deletions
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) -}} |
