Skip to content

Commit e15eaaf

Browse files
committed
Merge branch 'hotfix/6.5.4' into production
2 parents 0a6c1fb + 74cf57a commit e15eaaf

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
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

_includes/img-url.html

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@
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 -%}

0 commit comments

Comments
 (0)