File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 63
63
< meta property ="og:url " content ="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }} " />
64
64
{% endif %}
65
65
66
- {% if page.fb -img %}
67
- < meta property ="og:image " content ="{{ page.fb -img }} " />
66
+ {% if page.share -img %}
67
+ < meta property ="og:image " content ="{{ page.share -img }} " />
68
68
{% else %}
69
69
< meta property ="og:image " content ="{{ site.url }}{{ site.avatar }} " />
70
70
{% endif %}
71
+
72
+ <!-- Twitter summary cards -->
73
+ < meta name ="twitter:card " content ="summary " />
74
+ < meta name ="twitter:site " content ="@{{ site.author.twitter }} " />
75
+ < meta name ="twitter:creator " content ="@{{ site.author.twitter }} " />
76
+ < meta name ="twitter:title " content ="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} " />
77
+ < meta name ="twitter:description " content ="{{ page.content | strip_html | xml_escape | truncatewords: 50 }} " />
78
+ {% if page.share-img %}
79
+ < meta name ="twitter:image " content ="{{ page.share-img }} " />
80
+ {% elsif site.avatar %}
81
+ < meta name ="twitter:image " content ="{{ site.url }}{{ site.avatar }} " />
82
+ {% endif %}
71
83
</ head >
You can’t perform that action at this time.
0 commit comments