Browse Source

description tags now based on article summary

transformations
rra 7 years ago
parent
commit
aa79073f03
  1. 7
      themes/varia/templates/syndication.html

7
themes/varia/templates/syndication.html

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

Loading…
Cancel
Save