File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed
Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 3939 {%- endcapture -%}
4040
4141 {%- capture twitter_image -%}
42- < meta property ="twitter:card " content ="summary_large_image " />
42+ < meta name ="twitter:card " content ="summary_large_image " />
4343 < meta property ="twitter:image " content ="{{ img_url }} " />
4444 {%- endcapture -%}
4545
Original file line number Diff line number Diff line change 1414
1515{%- if url -%}
1616 {% unless url contains ':' %}
17- {%- comment -%} CND URL {%- endcomment -%}
18- {% assign prefix = site.img_cdn | default: '' %}
19-
2017 {%- comment -%} Add page image path prefix {%- endcomment -%}
2118 {% assign url = include.img_path | default: '' | append: '/' | append: url %}
2219
23- {% assign url = prefix
24- | append: '/'
25- | append: url
26- | replace: '///', '/'
27- | replace: '//', '/'
28- | replace: ':', ':/'
29- %}
30-
31- {% if include.absolute %}
32- {% assign url = site.url | append: site.baseurl | append: url %}
33- {% else %}
34- {% assign url = site.baseurl | append: url %}
20+ {%- comment -%} CND URL {%- endcomment -%}
21+ {% if site.img_cdn %}
22+ {% assign url = site.img_cdn
23+ | append: '/'
24+ | append: url
25+ | replace: '///', '/'
26+ | replace: '//', '/'
27+ | replace: ':/', '://'
28+ %}
29+
30+ {% unless site.img_cdn contains ':' %}
31+ {% if include.absolute %}
32+ {% assign url = site.url | append: site.baseurl | append: url %}
33+ {% else %}
34+ {% assign url = site.baseurl | append: url %}
35+ {% endif %}
36+ {% endunless %}
3537 {% endif %}
3638 {% endunless %}
3739{%- endif -%}
You can’t perform that action at this time.
0 commit comments