File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ lektor-google-analytics = 0.1.3
12
12
lektor-webpack-support = 0.5
13
13
lektor-atom = 0.3
14
14
lektor-disqus-comments = 0.4.1
15
+ lektor-strip-html-tags = 0.3.1
16
+ lektor-markdown-excerpt = 0.1
Original file line number Diff line number Diff line change 7
7
< link rel ="stylesheet " href ="{{ '/static/gen/style.css'|url }} ">
8
8
< meta property ="og:site_name " content ="Creative Commons " />
9
9
< meta property ="og:title " content ="{{ this.title }} " />
10
- < meta property ="og:description " content ="" />
10
+ {% if this.body %}
11
+ {% set desc = this.body|excerpt|striphtmltags %}
12
+ < meta property ="og:description " content ="{{ desc }} " />
13
+ {% else %}
14
+ {% set desc = this.description|striphtmltags %}
15
+ < meta property ="og:description " content ="{{ desc }} " />
16
+ {% endif %}
11
17
< meta property ="og:url " content ="{{ this|url }} " />
12
18
< meta property ="og:type " content ="article " />
13
19
{% set image = this.attachments.images.first() %}
16
22
{% endif %}
17
23
< meta name ="twitter:card " content ="summary_large_image " />
18
24
< meta name ="twitter:title " content ="{{ this.title }} ">
19
- < meta name ="twitter:description " content ="">
25
+ < meta name ="twitter:description " content ="{{ desc }} ">
20
26
{% if image %}
21
27
< meta name ="twitter:image " content ="{{ image|url(external=true) }} ">
22
28
{% endif %}
You can’t perform that action at this time.
0 commit comments