Skip to content

Commit 58125a7

Browse files
committed
extracted text from description and then from body
1 parent f9a588a commit 58125a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/layout.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
<link rel="stylesheet" href="{{ '/static/gen/style.css'|url }}">
88
<meta property="og:site_name" content="Creative Commons" />
99
<meta property="og:title" content="{{ this.title }}" />
10-
{% if this.body %}
11-
{% set desc = this.body|excerpt|striphtmltags %}
10+
{% if this.description %}
11+
{% set desc = this.description|excerpt|striphtmltags %}
1212
<meta property="og:description" content="{{ desc }}" />
1313
{% else %}
14-
{% set desc = this.description|striphtmltags %}
14+
{% if this.body %}
15+
{% set desc = this.body|excerpt|striphtmltags %}
1516
<meta property="og:description" content="{{ desc }}" />
1617
{% endif %}
18+
{% endif %}
1719
<meta property="og:url" content="{{ this|url }}" />
1820
<meta property="og:type" content="article" />
1921
{% set image = this.attachments.images.first() %}

0 commit comments

Comments
 (0)