Fix seo_description remove quotes

This commit is contained in:
Jesús 2019-11-22 16:44:48 -05:00
parent bb4767344d
commit 5bdea2bdd6
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -30,7 +30,8 @@
{# Quita la última palabra para no dejarla incompleta #} {# Quita la última palabra para no dejarla incompleta #}
{% set seo_description = seo_description[:SEO_DESC_LENGTH].split(' ')[:-1]|join(' ') %} {% set seo_description = seo_description[:SEO_DESC_LENGTH].split(' ')[:-1]|join(' ') %}
{% if not seo_description[-1] in ['.', '?', ':', '!'] %} {% if not seo_description[-1] in ['.', '?', ':', '!'] %}
{% set seo_description = seo_description + '…' %} {% set seo_more = seo_description + '…' %}
{% set seo_description = seo_more|replace('"','') %}
{% endif %} {% endif %}
{% endif %} {% endif %}
<!-- Meta Article --> <!-- Meta Article -->