fix: syntax + styles

This commit is contained in:
Cory Dransfeldt 2024-10-11 20:01:27 -07:00
parent 61d66bc8dc
commit 489ddb2111
No known key found for this signature in database
3 changed files with 15 additions and 8 deletions

View file

@ -1,5 +1,12 @@
article.standalone .associated-media:last-of-type > hr { article.standalone {
display: none; & + div,
& + img {
margin-bottom: var(--spacing-base);
}
& .associated-media:last-of-type > hr {
display: none;
}
} }
p + .associated-media, p + .associated-media,

View file

@ -36,7 +36,7 @@
{%- if entryFeed.image -%} {%- if entryFeed.image -%}
<enclosure url="https://cdn.coryd.dev{{ entryFeed.image }}?class=w800" type="image/jpeg" /> <enclosure url="https://cdn.coryd.dev{{ entryFeed.image }}?class=w800" type="image/jpeg" />
{%- endif -%} {%- endif -%}
<description><![CDATA[{{ entryFeed.description | escape | markdown }}]]></description> <description><![CDATA[{{ entryFeed.description | markdown }}]]></description>
</item> </item>
{%- endfor %} {%- endfor %}
</channel> </channel>

View file

@ -22,16 +22,16 @@ schema: blog
{%- if post.image -%} {%- if post.image -%}
<img <img
srcset=" srcset="
https://cdn.coryd.dev/{{ post.image }}?class=w200&type=webp 200w, https://cdn.coryd.dev{{ post.image }}?class=w200&type=webp 200w,
https://cdn.coryd.dev/{{ post.image }}?class=w400&type=webp 400w, https://cdn.coryd.dev{{ post.image }}?class=w400&type=webp 400w,
https://cdn.coryd.dev/{{ post.image }}?class=w800&type=webp 800w, https://cdn.coryd.dev{{ post.image }}?class=w800&type=webp 800w,
https://cdn.coryd.dev/{{ post.image }}?class=w1600&type=webp 1600w https://cdn.coryd.dev{{ post.image }}?class=w1600&type=webp 1600w
" "
sizes="(max-width: 450px) 200px, sizes="(max-width: 450px) 200px,
(max-width: 850px) 400px, (max-width: 850px) 400px,
(max-width: 1000px) 800px, (max-width: 1000px) 800px,
1200px" 1200px"
src="https://cdn.coryd.dev/{{ post.image }}?class=w200" src="https://cdn.coryd.dev{{ post.image }}?class=w200"
alt="{{ post.image_alt }}" alt="{{ post.image_alt }}"
class="image-banner" class="image-banner"
loading="eager" loading="eager"