Skip to content

zfben/astro-disqus

Repository files navigation

astro-disqus

License: MIT NPM Version

Add Disqus to your Astro website.

Key Features

  • Simplified Integration: Easily add Disqus to your Astro website with minimal configuration.
  • Support View Transitions: Automatically reload Disqus when navigating between pages.

Getting Started

  1. Installation: Install the package using npm: npm install astro-disqus.
  2. Import and Usage: Import the Head component from the package and use it within your Astro components:
---
import { Disqus } from "astro-disqus";
---

<Disqus embed="https://demo.disqus.com/embed.js" />

Supported Props

Prop Description
embed required The embed url, like https://demo.disqus.com/embed.js
url The page url
class The class name of the container
style The style of the container

Links