Skip to content

Commit

Permalink
add rss link to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Sep 11, 2024
1 parent a8f3635 commit c42fb54
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
23 changes: 23 additions & 0 deletions src/content/blog/Implanting a VSCode Rickroll.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,26 @@ if (isDoxygenLanguage && DOXYGEN_NON_USERS.indexOf(username) >= 0) {
}
return this.createHover(document.uri, username, wordPosition);
```

```js
for (let name of names) {
octokit
.request("GET /users/{username}", {
username: name,
})
.catch(() => {
console.log(`User ${name} does not exist`);
});
}
```

@returns - 2.6M
@property - 360k
@fileoverview - 309k TRIED
@memberof - 234k

@summary - 230k TRIED
@static - 176k
@classdesc - 65.8k
@hideconstructor - 8.7k
@linkplain - 1.6k
10 changes: 9 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ interface Props {
title: string;
sshUser: (typeof sshUsers)[number];
description?: string;
includeRss?: boolean;
}
const {
title,
sshUser,
description = "Arhan's personal website",
includeRss = false,
} = Astro.props;
const highlightIndex = sshUsers.indexOf(sshUser) + 1;
Expand Down Expand Up @@ -231,7 +233,13 @@ const highlightIndex = sshUsers.indexOf(sshUser) + 1;
<div id="copyright" class="input-mono">
&copy; 2024 Arhan Chaudhary &#x2022; <a
href="https://github.com/ArhanChaudhary/website">source</a
>
>{
includeRss && (
<>
&#x2022; <a href="/rss.xml">rss</a>
</>
)
}
</div>
</div>
<input type="checkbox" id="nav-toggle" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const publishedBlogs = await getCollection(
);
---

<Layout title="Arhan's Blog" sshUser="blog">
<Layout title="Arhan's Blog" sshUser="blog" includeRss={true}>
<div id="max-width-wrapper" class="input-mono">
<h1>My blog</h1>
{
Expand Down

0 comments on commit c42fb54

Please sign in to comment.