Skip to content

Commit 120dd5d

Browse files
committed
feat: add link to github repo
1 parent d1d7d22 commit 120dd5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ title: Tile of the snippet
1616
description: description of the snippet
1717
pubDate: (Dare) Feb 20, 2022
1818
contributedBy: "@TwitterHandle"
19-
repoUrl: "@GithubRepo"
2019
---
2120

2221
import BlogImage from "@components/BlogImage.astro";

src/components/Header.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ const desktop = [
2828
))
2929
}
3030
</ul>
31-
<button aria-label="theme toggle" class="pointer theme-toggle ml-4">
31+
<a aria-label="github" class="pointer ml-2 mr-4" href="https://github.com/santoshyadavdev/angular-snipptes" target="_blank">
32+
<Icon name="simple-icons:github" class="w-6 dark:text-white text-black" />
33+
</a>
34+
<button aria-label="theme toggle" class="pointer theme-toggle">
3235
<Icon name="eva:moon-outline" class="w-6 dark:text-white text-black transition-colors dark:hidden" />
3336
<Icon name="akar-icons:sun" class="w-6 dark:text-white text-black transition-colors hidden dark:block" />
3437
</button>

src/layouts/BlogLayout.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export interface Props {
1010
description?: string;
1111
image?: string;
1212
ImageAlt?: string;
13-
githubRepoUrl?: string;
1413
}
1514
1615
const thisDate = new Date(pubDate).toLocaleDateString("en", {
@@ -97,7 +96,6 @@ const canonicalURL = new URL(Astro.url).href;
9796
<span class="mb-3 sm:mb-0">
9897
{frontmatter.contributedBy}
9998
</span>
100-
{frontmatter.repoUrl && <a href={frontmatter.repoUrl} target="_blank" class="dark:text-blue-400 text-blue-600 mb-3 sm:mb-0">Open Repo</a>}
10199
</nav>
102100
</header>
103101
<article>

0 commit comments

Comments
 (0)