Browse Source

description tags now based on article summary

master
rra 1 year ago
parent
commit
aa79073f03
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      themes/varia/templates/syndication.html

+ 5
- 2
themes/varia/templates/syndication.html View File

@@ -15,7 +15,7 @@ serves as the default image for posts whose featured_image is not set. #}
15 15
 {% if article %}
16 16
 <meta property="og:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"/>
17 17
 <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
18
-<meta property="og:description" content="{{article.description|striptags|e}}" />
18
+<meta property="og:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}" />
19 19
 <meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
20 20
 <meta property="og:article:author" content="{{ article.author }}" />
21 21
 {% if article.date %}
@@ -26,7 +26,10 @@ serves as the default image for posts whose featured_image is not set. #}
26 26
 {% endif %}
27 27
 <meta name="twitter:card" content="summary_large_image">
28 28
 <meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
29
-<meta name="twitter:description" content="{{article.description|striptags|e}}">
29
+<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}">
30
+
31
+
32
+
30 33
 {% if article.featured_image %}
31 34
     {% if I18N_SUBSITES %}
32 35
     {% for lang, url in I18N_SUBSITES.items() %}

Loading…
Cancel
Save