[site/howtos/comments][xs]: rm unneeded link

This commit is contained in:
Ola Rubaj
2023-06-22 11:21:48 +02:00
parent 6c2a1ea125
commit 7ba9b5157e

View File

@@ -12,8 +12,8 @@ Page comments can be setup with any one of the following supported providers:
Each provider has it's own configuration options that you should add to your `.env` file. Each provider has it's own configuration options that you should add to your `.env` file.
>[!Info] > [!Info]
>If you are hosting your website on hosting providers like Netlify, Vercel or Cloudflare, you will also need to add the environment variables there. > If you are hosting your website on hosting providers like Netlify, Vercel or Cloudflare, you will also need to add the environment variables there.
### Giscus ### Giscus
@@ -26,7 +26,7 @@ Each provider has it's own configuration options that you should add to your `.e
Once the above steps are completed, head over to [https://giscus.app](https://giscus.app/) and follow the steps there by filling out the fields to get your config values. Once the above steps are completed, head over to [https://giscus.app](https://giscus.app/) and follow the steps there by filling out the fields to get your config values.
>[!important] > [!important]
> Make sure to choose `pathname` under page discussions mapping. > Make sure to choose `pathname` under page discussions mapping.
After filling out the fields, you will be provided with a script tag that contains your config values. Add them to your `.env` file, like so: After filling out the fields, you will be provided with a script tag that contains your config values. Add them to your `.env` file, like so:
@@ -86,21 +86,17 @@ Then, add the following to your custom layout (or directly to your pages):
```tsx ```tsx
import Navbar from './navbar'; import Navbar from './navbar';
import Footer from './footer'; import Footer from './footer';
export default function Layout({ children }) { export default function Layout({ children }) {
return ( return (
<> <>
<Navbar /> <Navbar />
<main>{children}</main> <main>{children}</main>
<div> <div>
<Comments commentsConfig={commentsConfig} slug={urlPath} /> <Comments commentsConfig={commentsConfig} slug={urlPath} />
</div> </div>
<Footer /> <Footer />
</> </>
); );
} }
``` ```
## Add user comments
Learn how to add support for user comments in [[comments|this guide]].