Implementing Blog

This commit is contained in:
Firq 2023-03-08 20:53:38 +01:00
parent 2b0fd9f13a
commit 0dad47a6ab
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
6 changed files with 228 additions and 7 deletions
src/pages

View file

@ -1,16 +1,16 @@
---
import Layout from '../layouts/Layout.astro';
import BlogCard from '../components/blogCard.astro';
import BasicSection from '../layouts/basicSection.astro';
const description = "A placeholder until I get to designing the Blog pages. Future topics will include FGO, TA, Programming, web technologies and more!"
const description = "My own small blog. Topics include FGO, TA, Programming, web technologies and more!"
const allPosts = await Astro.glob("../pages/blog/*.md");
---
<Layout title="Blog - Firq FGO Site" currentpage="blog" descriptionOverride={description}>
<BasicSection title="Work in Progress">
Nothing to see here (yet)<br>
Topics will range from FGO to technologies and programming.
<BasicSection title="Blog Articles">
{allPosts.map((post) => <BlogCard url={post.url} title={post.frontmatter.title} pubdate={post.frontmatter.pubDate} description={post.frontmatter.description}/>)}
</BasicSection>
</Layout>
<style>