more cleanup + add .prettierignore

pull/3/head
Tymon 1 year ago
parent 65bada52c6
commit 14128477aa

@ -1,31 +0,0 @@
---
import { getCollection } from "astro:content";
const posts = (await getCollection("blog"))
.filter(
(entry) => !entry.data.wip || process.env.NODE_ENV === "development"
)
.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
---
<div>
{
posts.map((post) => {
return (
<a href={`blog/${post.slug}`}>
<div
class="main-content"
style="margin-bottom: 10px; font-size: 125%;"
>
<div>
<b>{post.data.title}</b> -{" "}
{post.data.pubDate.toDateString()}
<br />
</div>
<i>{post.data.description}</i>
</div>
</a>
);
})
}
</div>

@ -1,9 +1,36 @@
---
import Base from "../../layout/Base.astro";
import BlogList from "../../components/blogList.astro";
import { getCollection } from "astro:content";
const posts = (await getCollection("blog"))
.filter(
(entry) => !entry.data.wip || process.env.NODE_ENV === "development"
)
.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
---
<Base title="ruthenic.com: Blog">
<h1>Blog</h1>
<BlogList />
<div>
{
posts.map((post) => {
return (
<a href={`blog/${post.slug}`}>
<div
class="main-content"
style="margin-bottom: 10px; font-size: 125%;"
>
<div>
<b>{post.data.title}</b> -{" "}
{post.data.pubDate.toDateString()}
<br />
</div>
<i>{post.data.description}</i>
</div>
</a>
);
})
}
</div>
</Base>

@ -1,7 +1,8 @@
---
import Base from "../../layout/Base.astro";
import { getCollection } from "astro:content";
import Base from "../../layout/Base.astro";
const fics = (await getCollection("fanfic"))
.filter(
(entry) =>

Loading…
Cancel
Save