feat: massive refactor
This commit is contained in:
parent
d424082c95
commit
1880790c05
38 changed files with 245 additions and 761 deletions
|
@ -1,13 +1,13 @@
|
|||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev/{{ image }}?class=bannersm&type=webp 256w,
|
||||
https://cdn.coryd.dev/{{ image }}?class=bannermd&type=webp 512w,
|
||||
https://cdn.coryd.dev/{{ image }}?class=bannerbase&type=webp 1024w
|
||||
https://cdn.coryd.dev{{ image }}?class=bannersm&type=webp 256w,
|
||||
https://cdn.coryd.dev{{ image }}?class=bannermd&type=webp 512w,
|
||||
https://cdn.coryd.dev{{ image }}?class=bannerbase&type=webp 1024w
|
||||
"
|
||||
sizes="(max-width: 450px) 256px,
|
||||
(max-width: 850px) 512px
|
||||
1024px"
|
||||
src="https://cdn.coryd.dev/{{ image }}?class=bannersm&type=webp"
|
||||
src="https://cdn.coryd.dev{{ image }}?class=bannersm&type=webp"
|
||||
alt="{{ alt }}"
|
||||
class="image-banner"
|
||||
loading="lazy"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{%- elsif block.type == 'rss_banner' -%}
|
||||
{% render "partials/blocks/banners/rss.liquid", url:block.url, text:block.text %}
|
||||
{%- elsif block.type == 'hero' -%}
|
||||
{% render "partials/blocks/hero.liquid", image:block.image.filename_disk, alt:block.alt_text %}
|
||||
{% render "partials/blocks/hero.liquid", image:block.image, alt:block.alt %}
|
||||
{%- elsif block.type == 'markdown' -%}
|
||||
{{ block.text | markdown }}
|
||||
{%- elsif block.type == 'divider' -%}
|
||||
|
|
Reference in a new issue