This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: Add Breadcrumb,Comment (#4978)
* Add Breadcrumb * Add Comment
- Loading branch information
1 parent
67fee42
commit 537e06f
Showing
8 changed files
with
127 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Link from "@/components/Link"; | ||
|
||
interface Props { | ||
paths: { | ||
title: string; | ||
href?: string; | ||
}[]; | ||
} | ||
|
||
export default function Breadcrumb({ paths }: Props) { | ||
return ( | ||
<div className="text-sm breadcrumbs mb-5"> | ||
<ul> | ||
{paths.map((path, index) => ( | ||
<li key={index}> | ||
{path.href ? ( | ||
<Link href={path.href}>{path.title}</Link> | ||
) : ( | ||
<span>{path.title}</span> | ||
)} | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use client"; | ||
|
||
import { useTheme } from "next-themes"; | ||
import Giscus from "@giscus/react"; | ||
|
||
export default function Comment() { | ||
const { theme } = useTheme(); | ||
|
||
return ( | ||
<> | ||
<div className="my-10"> | ||
<Giscus | ||
id="giscus-comments" | ||
repo={`codinasion/.github`} | ||
repoId={`R_kgDOKx7Kyw`} | ||
category={`General`} | ||
categoryId={`DIC_kwDOKx7Ky84CcJY2`} | ||
mapping={`pathname`} | ||
strict={`1`} | ||
reactionsEnabled={`1`} | ||
emitMetadata={`0`} | ||
inputPosition={`bottom`} | ||
theme={theme} | ||
lang={`en`} | ||
loading={`lazy`} | ||
/> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
537e06f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
codinasion-tech – ./website
codinasion.tech
codinasion-tech-git-master-codinasion.vercel.app
www.codinasion.tech
codinasion-tech-codinasion.vercel.app
codinasion-tech.vercel.app