Explorar el Código

description tags now based on article summary

master
rra hace 2 años
padre
commit
aa79073f03
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. +5
    -2
      themes/varia/templates/syndication.html

+ 5
- 2
themes/varia/templates/syndication.html Ver fichero

@@ -15,7 +15,7 @@ serves as the default image for posts whose featured_image is not set. #}
{% if article %}
<meta property="og:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
<meta property="og:description" content="{{article.description|striptags|e}}" />
<meta property="og:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}" />
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
<meta property="og:article:author" content="{{ article.author }}" />
{% if article.date %}
@@ -26,7 +26,10 @@ serves as the default image for posts whose featured_image is not set. #}
{% endif %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
<meta name="twitter:description" content="{{article.description|striptags|e}}">
<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}">



{% if article.featured_image %}
{% if I18N_SUBSITES %}
{% for lang, url in I18N_SUBSITES.items() %}


Cargando…
Cancelar
Guardar