aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-08 14:29:38 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-08 14:29:38 -0500
commitdc6e36f13c8f94b148f6a3ec8378c66e5fd5034a (patch)
tree8c8830a84d33306fc9e3f3c07baea1e4e4b82674 /src/pages/blog
parentf58a1d127577b07bd849df85afd5e574eaec3a35 (diff)
downloadpersonal-website-dc6e36f13c8f94b148f6a3ec8378c66e5fd5034a.tar.gz
personal-website-dc6e36f13c8f94b148f6a3ec8378c66e5fd5034a.tar.bz2
personal-website-dc6e36f13c8f94b148f6a3ec8378c66e5fd5034a.zip
Added personal repos; RSS icon on blog
Diffstat (limited to 'src/pages/blog')
-rw-r--r--src/pages/blog/index.astro15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro
index 5e4c619..0acaaee 100644
--- a/src/pages/blog/index.astro
+++ b/src/pages/blog/index.astro
@@ -3,11 +3,17 @@ import Page from "../../layouts/Page.astro";
import { getCollection } from "astro:content";
import {formatDate} from "../../util";
import "../../styles/cards.css";
+import {Icon} from "astro-icon/components";
const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
---
<Page title="Blog" description="Where I post can be anything!">
<main>
+ <div class="header">
+ <a href="/blog/rss.xml">
+ <Icon name="fa6-solid:square-rss" class="icon" />
+ </a>
+ </div>
<div class="grid">
{allBlogPosts.map((post) => (
<article class="card">
@@ -31,4 +37,13 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate
flex-direction: row;
gap: 1em;
}
+
+ .header {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ gap: 0.5em;
+ font-size: 3em;
+ }
</style>