diff --git a/config/config.yml.dist b/config/config.yml.dist index d48923f..ce4c51b 100755 --- a/config/config.yml.dist +++ b/config/config.yml.dist @@ -9,7 +9,7 @@ title_postfix: '' # will _not_ make them appear as longer snippets in Google. # Set a value (i.e. 255) for the `keywords_length`, to enable the meta keywords option. title_length: 70 -description_length: 350 +description_length: 158 keywords_length: 0 #255 # Default values to consider for the title, meta description and meta keywords diff --git a/templates/_seo_extension_field.twig b/templates/_seo_extension_field.twig index 374b930..94700c0 100755 --- a/templates/_seo_extension_field.twig +++ b/templates/_seo_extension_field.twig @@ -42,7 +42,7 @@ {% set seovalues = context.content.get(contentkey)|default('')|json_decode|default([]) %} {% set title_length = seoconfig.title_length|default(70) %} -{% set description_length = seoconfig.description_length|default(350) %} +{% set description_length = seoconfig.description_length|default(158) %} {% set keywords_length = seoconfig.keywords_length|default(0) %} {% if seovalues.robots is not defined %} @@ -63,7 +63,7 @@
-

{{__("Will be used as the <title> and in search engines")}}. +

{{__("Will be used as the <title> and in search engines")}}. {{__("Limit the length to %s characters", {'%s': title_length}) }}.

@@ -205,7 +205,7 @@ $('#seosnippet .title').text( this.trimtext(title, {{ title_length }}) ); $('#seosnippet cite').text( this.hostname + link ); - $('#seosnippet .excerpt').text( this.trimtext(description, {{ description_length }}) ); + $('#seosnippet .excerpt').text( this.trimtext(description, {{ description_length }}) ); var value = { 'title': $('#seofields-title').val(),