Skip to content

Commit

Permalink
include bio in embed
Browse files Browse the repository at this point in the history
  • Loading branch information
mudkipdev committed Jun 24, 2024
1 parent 2637f02 commit c33f181
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/layouts/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const { title } = Astro.props;
rel="alternate" type="application/rss+xml"
title="mudkip's blog" href="/rss.xml"
/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="theme-color" content="#C6A0F6">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="theme-color" content="#C6A0F6" />
<slot name="metadata">
<meta property="og:title" content={title} />
</slot>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const stripped = await stripContent(post);
---
<Page title={data.title}>
<Fragment slot="metadata">
<meta property="og:site_name" content="mudkip">
<meta property="og:title" content={data.title}>
<meta property="og:description" content={stripped}>
<meta property="og:site_name" content="mudkip" />
<meta property="og:title" content={data.title} />
<meta property="og:description" content={stripped} />
</Fragment>

<Date date={data.date} />
Expand Down
11 changes: 9 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
---
import Page from "@layouts/Page.astro";
import Footer from "@components/Footer.astro";
const bio = "i'm a software developer and security researcher, my interests include programming, video games, and music.";
---
<Page title="mudkip">
<Fragment slot="metadata">
<meta property="og:title" content="mudkip" />
<meta property="og:description" content={bio} />
</Fragment>

<p>
i'm a software developer and security researcher, my interests include programming, video games, and music.
<br><span style="color: var(--surface-2)">(i also use NixOS btw)</span>
{bio}<br>
<span style="color: var(--surface-2)">(i also use NixOS btw)</span>
</p>
<ul>
<li>Matrix: <a href="https://matrix.to/#/@mudkip:nope.chat" target="_blank">@mudkip:nope.chat</a></li>
Expand Down

0 comments on commit c33f181

Please sign in to comment.