more cleanup + add .prettierignore
parent
65bada52c6
commit
14128477aa
@ -0,0 +1 @@
|
|||||||
|
dist/
|
@ -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 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">
|
<Base title="ruthenic.com: Blog">
|
||||||
<h1>Blog</h1>
|
<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>
|
</Base>
|
||||||
|
Loading…
Reference in new issue