fix: styles

This commit is contained in:
Cory Dransfeldt 2024-10-12 16:19:51 -07:00
parent 057d75f863
commit fa74651a80
No known key found for this signature in database
7 changed files with 38 additions and 80 deletions

View file

@ -47,7 +47,7 @@
{%- assign pageDescription = description -%}
{%- endif -%}
{%- assign ogImage = 'https://cdn.coryd.dev/' | append: globals.avatar | append: "?class=w800" -%}
{%- assign ogImage = 'https://cdn.coryd.dev' | append: globals.avatar | append: "?class=w800" -%}
{%- case schema -%}
{%- when 'music' -%}
{%- assign ogImage = 'https://cdn.coryd.dev' | append: page.image -%}

View file

@ -1,42 +0,0 @@
{%- assign pageCount = pagination.pages.size | default: 0 -%}
{%- assign hidePagination = pageCount <= 1 -%}
<div class="watching grid">
{%- for item in data limit: count -%}
{%- assign alt = item.grid.grid.alt | strip | escape -%}
<a href="{{ item.grid.url }}">
<div class="watching item">
<div class="meta-text">
{%- if item.grid.type == 'movie' -%}
<div class="header">{{ item.grid.title }}</div>
<div class="subheader">
{%- if item.grid.rating -%}
<span class="rating"> {{ item.grid.rating }}</span>
{%- endif -%}
({{ item.grid.year }})
</div>
{%- else -%}
<div class="header">{{ item.grid.title }}</div>
<div class="subheader">({{ item.grid.year }})</div>
{%- endif -%}
</div>
{%- assign loadingStrategy = loading | default: 'lazy' -%}
<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
"
sizes="(max-width: 450px) 256px, 512px"
src="https://cdn.coryd.dev{{ item.grid.backdrop }}?class=bannersm&type=webp"
alt="{{ alt }}"
loading="{{ loadingStrategy }}"
decoding="async"
width="256"
height="170"
/>
</div>
</a>
{%- endfor -%}
</div>
{%- unless hidePagination -%}
{% render "partials/nav/paginator.liquid", pagination:pagination %}
{%- endunless -%}