chore: feed styles

This commit is contained in:
Cory Dransfeldt 2024-11-15 17:40:19 -08:00
parent 1d185fe7cd
commit 5179fa1c2f
No known key found for this signature in database
4 changed files with 9 additions and 38 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.3.0", "version": "3.3.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.3.0", "version": "3.3.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@11ty/eleventy-fetch": "4.0.1", "@11ty/eleventy-fetch": "4.0.1",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "3.3.0", "version": "3.3.1",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -43,27 +43,26 @@
</article> </article>
<section> <section>
<xsl:for-each select="/rss/channel/item"> <xsl:for-each select="/rss/channel/item">
<div class="item"> <article>
<time>Published: <xsl:value-of select="pubDate" /></time> <time>Published: <xsl:value-of select="pubDate" /></time>
<h2> <h3>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="link" /> <xsl:value-of select="link" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="title" /> <xsl:value-of select="title" />
</a> </a>
</h2> </h3>
<xsl:value-of select="description" disable-output-escaping="yes" /> <xsl:value-of select="description" disable-output-escaping="yes" />
<xsl:if test="enclosure"> <xsl:if test="enclosure">
<img class="image-banner" src="{enclosure/@url}" alt="{title}" /> <img class="image-banner" src="{enclosure/@url}" alt="{title}" />
</xsl:if> </xsl:if>
</div> </article>
</xsl:for-each> </xsl:for-each>
</section> </section>
</div> </div>
</main> </main>
<footer> <footer>
<hr />
<p>Subscribe by adding <code> <p>Subscribe by adding <code>
<xsl:value-of select="rss/channel/atom:link/@href" /> <xsl:value-of select="rss/channel/atom:link/@href" />
</code> to your </code> to your

View file

@ -3,35 +3,7 @@
white-space: normal; white-space: normal;
} }
& .item { footer {
&:not(:last-of-type) { border-top: var(--border-gray);
border-bottom: var(--border-gray);
margin-bottom: var(--spacing-base);
}
& time {
color: var(--gray-dark);
font-size: var(--font-size-sm);
}
& h2 {
margin-top: 0;
}
& img {
margin-top: var(--sizing-base);
}
}
& ol > li p {
display: inline;
}
& footer {
padding-bottom: var(--spacing-3xl);
& hr {
margin-top: 0;
}
} }
} }