chore: feed nav + footer

This commit is contained in:
Cory Dransfeldt 2024-11-15 19:20:56 -08:00
parent 5179fa1c2f
commit 7a4505ab78
No known key found for this signature in database
10 changed files with 23 additions and 33 deletions

View file

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

View file

@ -254,6 +254,10 @@ h1 {
h2 {
font-size: var(--font-size-xl);
&.page-header {
margin-top: 0;
}
}
h3 {
@ -421,10 +425,6 @@ td:first-of-type,
/* layout */
.default-wrapper {
padding-top: var(--spacing-2xl);
h2.page-title {
margin-top: 0;
}
}
.main-wrapper {

View file

@ -1,3 +1,6 @@
---
permalink: /assets/styles/feed.xsl
---
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom">
@ -16,14 +19,11 @@
<body class="feed">
<div class="main-wrapper">
<main>
<section class="main-title">
<h1>
<a href="/feeds" tabindex="0">
<xsl:value-of select="/rss/channel/title" />
</a>
</h1>
</section>
{% render "header.liquid", globals:globals, page:page, nav:nav %}
<div class="default-wrapper">
<h2 class="page-header">
<xsl:value-of select="/rss/channel/title" />
</h2>
<article class="intro">
<p>
<xsl:value-of select="/rss/channel/description" />
@ -62,12 +62,12 @@
</section>
</div>
</main>
<footer>
<p>Subscribe by adding <code>
<xsl:value-of select="rss/channel/atom:link/@href" />
</code> to your
feed reader of choice.</p>
</footer>
{% render "footer.liquid",
page:page,
nav:nav,
updated:updated,
pageUpdated:page.updated
%}
</div>
</body>
</html>

View file

@ -17,7 +17,6 @@
@import url("./pages/about.css") layer(page);
@import url("./pages/books.css") layer(page);
@import url("./pages/contact.css") layer(page);
@import url("./pages/feeds.css") layer(page);
@import url("./pages/links.css") layer(page);
@import url("./pages/media.css") layer(page);
@import url("./pages/music.css") layer(page);

View file

@ -1,9 +0,0 @@
.feed {
.main-title h1 {
white-space: normal;
}
footer {
border-top: var(--border-gray);
}
}

View file

@ -5,7 +5,7 @@ permalink: "/feeds/all"
---
{% render "feeds/rss.liquid"
permalink:"/feeds/all"
title:"All / Cory Dransfeldt"
title:"All activity"
globals:globals
data:activity
%}

View file

@ -5,7 +5,7 @@ permalink: "/feeds/books"
---
{% render "feeds/rss.liquid"
permalink:"/feeds/books"
title:"Books / Cory Dransfeldt"
title:"Books feed"
globals:globals
data:books.feed
utm_campaign:"books_feed"

View file

@ -5,7 +5,7 @@ permalink: "/feeds/links"
---
{% render "feeds/rss.liquid"
permalink:"/feeds/links"
title:"Links / Cory Dransfeldt"
title:"Links feed"
globals:globals
data:links
%}

View file

@ -5,7 +5,7 @@ permalink: "/feeds/movies"
---
{% render "feeds/rss.liquid"
permalink:"/feeds/movies"
title:"Movies / Cory Dransfeldt"
title:"Movies feed"
globals:globals
data:movies.feed
utm_campaign:"movies_feed"

View file

@ -5,7 +5,7 @@ permalink: "/feeds/posts"
---
{% render "feeds/rss.liquid"
permalink:"/feeds/posts"
title:"Posts / Cory Dransfeldt"
title:"Posts feed"
globals:globals
data:posts
utm_campaign:"posts_feed"