chore: cdn url in cms + og images
This commit is contained in:
parent
35b56b75f2
commit
c23ef6bd0d
36 changed files with 102 additions and 101 deletions
|
@ -13,11 +13,11 @@
|
|||
{%- if shape == 'poster' -%}
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev{{ item.grid.backdrop }}?class=bannersm&type=webp 256w,
|
||||
https://cdn.coryd.dev{{ item.grid.backdrop }}?class=bannermd&type=webp 512w
|
||||
{{ globals.cdn_url }}{{ item.grid.backdrop }}?class=bannersm&type=webp 256w,
|
||||
{{ globals.cdn_url }}{{ item.grid.backdrop }}?class=bannermd&type=webp 512w
|
||||
"
|
||||
sizes="(max-width: 450px) 256px, 512px"
|
||||
src="https://cdn.coryd.dev{{ item.grid.backdrop }}?class=bannersm&type=webp"
|
||||
src="{{ globals.cdn_url }}{{ item.grid.backdrop }}?class=bannersm&type=webp"
|
||||
alt="{{ alt }}"
|
||||
loading="{{ loadingStrategy }}"
|
||||
decoding="async"
|
||||
|
@ -27,11 +27,11 @@
|
|||
{%- elsif shape == 'square' -%}
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev{{ item.grid.image }}?class=squaresm&type=webp 200w,
|
||||
https://cdn.coryd.dev{{ item.grid.image }}?class=squaremd&type=webp 400w
|
||||
{{ globals.cdn_url }}{{ item.grid.image }}?class=squaresm&type=webp 200w,
|
||||
{{ globals.cdn_url }}{{ item.grid.image }}?class=squaremd&type=webp 400w
|
||||
"
|
||||
sizes="(max-width: 450px) 200px, 400px"
|
||||
src="https://cdn.coryd.dev{{ item.grid.image }}?class=squaresm&type=webp"
|
||||
src="{{ globals.cdn_url }}{{ item.grid.image }}?class=squaresm&type=webp"
|
||||
alt="{{ alt }}"
|
||||
loading="{{ loadingStrategy }}"
|
||||
decoding="async"
|
||||
|
@ -41,11 +41,11 @@
|
|||
{%- elsif shape == 'vertical' -%}
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev{{ item.grid.image }}?class=verticalsm&type=webp 200w,
|
||||
https://cdn.coryd.dev{{ item.grid.image }}?class=verticalmd&type=webp 400w
|
||||
{{ globals.cdn_url }}{{ item.grid.image }}?class=verticalsm&type=webp 200w,
|
||||
{{ globals.cdn_url }}{{ item.grid.image }}?class=verticalmd&type=webp 400w
|
||||
"
|
||||
sizes="(max-width: 450px) 200px, 400px"
|
||||
src="https://cdn.coryd.dev{{ item.grid.image }}?class=verticalsm&type=webp"
|
||||
src="{{ globals.cdn_url }}{{ item.grid.image }}?class=verticalsm&type=webp"
|
||||
alt="{{ alt }}"
|
||||
loading="{{ loadingStrategy }}"
|
||||
decoding="async"
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
<a href="{{ item.chart.url }}">
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev{{ item.chart.image }}?class=w50&type=webp 50w,
|
||||
https://cdn.coryd.dev{{ item.chart.image }}?class=w100&type=webp 100w
|
||||
{{ globals.cdn_url }}{{ item.chart.image }}?class=w50&type=webp 50w,
|
||||
{{ globals.cdn_url }}{{ item.chart.image }}?class=w100&type=webp 100w
|
||||
"
|
||||
sizes="(max-width: 450px) 50px, 100px"
|
||||
src="https://cdn.coryd.dev{{ item.chart.image }}?class=w50&type=webp"
|
||||
src="{{ globals.cdn_url }}{{ item.chart.image }}?class=w50&type=webp"
|
||||
alt="{{ item.chart.alt }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
|
|
|
@ -11,16 +11,16 @@
|
|||
</div>
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev{{ movie.backdrop }}?class=bannersm 256w,
|
||||
https://cdn.coryd.dev{{ movie.backdrop }}?class=bannermd 512w,
|
||||
https://cdn.coryd.dev{{ movie.backdrop }}?class=bannerbase 1024w,
|
||||
https://cdn.coryd.dev{{ movie.backdrop }}?class=bannerlg 2048w
|
||||
{{ globals.cdn_url }}{{ movie.backdrop }}?class=bannersm 256w,
|
||||
{{ globals.cdn_url }}{{ movie.backdrop }}?class=bannermd 512w,
|
||||
{{ globals.cdn_url }}{{ movie.backdrop }}?class=bannerbase 1024w,
|
||||
{{ globals.cdn_url }}{{ movie.backdrop }}?class=bannerlg 2048w
|
||||
"
|
||||
sizes="(max-width: 450px) 256px,
|
||||
(max-width: 850px) 512px,
|
||||
(max-width: 1000px) 1024px,
|
||||
2048px"
|
||||
src="https://cdn.coryd.dev{{ movie.backdrop }}?class=bannerlg"
|
||||
src="{{ globals.cdn_url }}{{ movie.backdrop }}?class=bannerlg"
|
||||
loading="eager"
|
||||
decoding="async"
|
||||
width="1080"
|
||||
|
|
Reference in a new issue