Merge branch 'hotfix/6.5.4' into production
This commit is contained in:
commit
e15eaaffe0
2 changed files with 17 additions and 15 deletions
|
@ -39,7 +39,7 @@
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
|
|
||||||
{%- capture twitter_image -%}
|
{%- capture twitter_image -%}
|
||||||
<meta property="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta property="twitter:image" content="{{ img_url }}" />
|
<meta property="twitter:image" content="{{ img_url }}" />
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
|
|
||||||
|
|
|
@ -14,26 +14,28 @@
|
||||||
|
|
||||||
{%- if url -%}
|
{%- if url -%}
|
||||||
{% unless url contains ':' %}
|
{% unless url contains ':' %}
|
||||||
{%- comment -%} CND URL {%- endcomment -%}
|
|
||||||
{% assign prefix = site.img_cdn | default: '' %}
|
|
||||||
|
|
||||||
{%- comment -%} Add page image path prefix {%- endcomment -%}
|
{%- comment -%} Add page image path prefix {%- endcomment -%}
|
||||||
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
|
{% assign url = include.img_path | default: '' | append: '/' | append: url %}
|
||||||
|
|
||||||
{% assign url = prefix
|
{%- comment -%} CND URL {%- endcomment -%}
|
||||||
|
{% if site.img_cdn %}
|
||||||
|
{% assign url = site.img_cdn
|
||||||
| append: '/'
|
| append: '/'
|
||||||
| append: url
|
| append: url
|
||||||
| replace: '///', '/'
|
| replace: '///', '/'
|
||||||
| replace: '//', '/'
|
| replace: '//', '/'
|
||||||
| replace: ':', ':/'
|
| replace: ':/', '://'
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
{% unless site.img_cdn contains ':' %}
|
||||||
{% if include.absolute %}
|
{% if include.absolute %}
|
||||||
{% assign url = site.url | append: site.baseurl | append: url %}
|
{% assign url = site.url | append: site.baseurl | append: url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign url = site.baseurl | append: url %}
|
{% assign url = site.baseurl | append: url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
|
{% endif %}
|
||||||
|
{% endunless %}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{{- url -}}
|
{{- url -}}
|
||||||
|
|
Loading…
Reference in a new issue