blob: 6d801e7f5c00b663f45e64942ff5fb008837adc7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
import { getCollection } from 'astro:content';
import FormattedDate from '../components/FormattedDate.astro';
import ProjectGrid from '../components/ProjectGrid.astro'
const posts = (await getCollection('blog')).sort(
(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
);
---
<!DOCTYPE html>
<html lang="en">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
</head>
<body>
<Header title={SITE_TITLE} />
<main>
<style>
ul {
list-style-type: none;
padding: unset;
}
ul li {
display: flex;
}
ul li :global(time) {
flex: 0 0 130px;
font-style: italic;
color: #646464;
}
</style>
<h2>Recent Posts</h2>
<section>
<ul>
{
posts.slice(-3).map((post) => (
<li>
<FormattedDate date={post.data.pubDate} />
<a href={`/blog/${post.slug}/`}>{post.data.title}</a>
</li>
)).reverse()
}
</ul>
</section>
<h1>👋 Greetings, <a href="https://pinapelz.gitlab.io/3d-ascii-rpg/">Adventurer!</a></h1>
<p>
Welcome to my site/blog! This place will serve as a corner where I can document the progress and process with some of things I've experimented with or made.
I guess its like programming documentation, but uhh more of a mess?
</p>
<h3>I did a thing..</h3>
<p>Here are some of the things I've done/experimented with and found pretty cool! (you can also find more <a href="https://pinapelz.moe">here</a>
<ProjectGrid>
</main>
<Footer />
</body>
</html>
|