fix: styles
This commit is contained in:
parent
057d75f863
commit
fa74651a80
7 changed files with 38 additions and 80 deletions
|
@ -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 -%}
|
||||
|
|
|
@ -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 -%}
|
Reference in a new issue