Skip to content

Commit f462e14

Browse files
committed
add social links to index page
1 parent 9a42fca commit f462e14

File tree

2 files changed

+438
-395
lines changed

2 files changed

+438
-395
lines changed

src/pages/index.astro

Lines changed: 56 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,62 @@ const numHiddenNotes = notes.length - maxPostsToShow;
1616
---
1717

1818
<BaseLayout title={SITE_TITLE} description={SITE_DESCRIPTION} type="website">
19-
<div class="profile">
20-
<Picture
21-
src={profileImage}
22-
alt="Daniel Oltmanns"
23-
width={150}
24-
height={150}
25-
/>
26-
<div class="profile-description">
27-
<h2>Moin, I'm Daniel -</h2>
28-
<p>
29-
and this is my personal blog where I post stuff about my
30-
projects and things that cross my path that I think might be
31-
worth sharing.
32-
</p>
33-
</div>
34-
</div>
19+
<div class="profile">
20+
<Picture
21+
src={profileImage}
22+
alt="Daniel Oltmanns"
23+
width={150}
24+
height={150}
25+
/>
26+
<div class="profile-description">
27+
<h2>Moin, I'm Daniel -</h2>
28+
<p>
29+
and this is my personal blog where I post stuff about my
30+
projects and things that cross my path that I think might be
31+
worth sharing.
32+
</p>
33+
<div class="social-links">
34+
<a
35+
href="https://github.com/oltdaniel"
36+
target="_blank"
37+
rel="noopener noreferrer">GitHub</a
38+
>
39+
<a
40+
href="https://codeberg.org/oltdaniel"
41+
target="_blank"
42+
rel="noopener noreferrer">Codeberg</a
43+
>
44+
<a
45+
href="https://discord.com/users/635465695282331658"
46+
target="_blank"
47+
rel="noopener noreferrer">Discord</a
48+
>
49+
</div>
50+
</div>
51+
</div>
3552

36-
<h1>Latest Posts</h1>
37-
<PostsList
38-
posts={posts.slice(0, maxPostsToShow)}
39-
totalLength={posts.length}
40-
/>
41-
{
42-
numHiddenPosts > 0 && (
43-
<p>
44-
{numHiddenPosts} more post{numHiddenPosts > 1 ? "s" : ""} can be
45-
found in <a href="/blog">the archive</a>.
46-
</p>
47-
)
48-
}
53+
<h1>Latest Posts</h1>
54+
<PostsList
55+
posts={posts.slice(0, maxPostsToShow)}
56+
totalLength={posts.length}
57+
/>
58+
{
59+
numHiddenPosts > 0 && (
60+
<p>
61+
{numHiddenPosts} more post{numHiddenPosts > 1 ? "s" : ""} can be
62+
found in <a href="/blog">the archive</a>.
63+
</p>
64+
)
65+
}
4966

50-
<h1>Latest Notes</h1>
51-
<PostsList posts={notes.slice(0, 3)} totalLength={notes.length} />
52-
{
53-
numHiddenNotes > 0 && (
54-
<p>
55-
{numHiddenNotes} more note{numHiddenNotes > 1 ? "s" : ""} can be
56-
found in <a href="/notes">the archive</a>.
57-
</p>
58-
)
59-
}
67+
<h1>Latest Notes</h1>
68+
<PostsList posts={notes.slice(0, 3)} totalLength={notes.length} />
69+
{
70+
numHiddenNotes > 0 && (
71+
<p>
72+
{numHiddenNotes} more note{numHiddenNotes > 1 ? "s" : ""} can be
73+
found in <a href="/notes">the archive</a>.
74+
</p>
75+
)
76+
}
6077
</BaseLayout>

0 commit comments

Comments
 (0)