Skip to content

Add Disqus comment system integration - #19

Draft
wanoo21 with Copilot wants to merge 5 commits into
mainfrom
copilot/add-comments-blog
Draft

Add Disqus comment system integration#19
wanoo21 with Copilot wants to merge 5 commits into
mainfrom
copilot/add-comments-blog

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Implements Disqus comments for blog posts, disabled by default via configuration.

Changes

New Components

  • src/components/solidjs/Disqus.tsx - SolidJS component handling Disqus embed lifecycle, script cleanup, and reactive slug updates
  • src/components/Comments.astro - Conditional wrapper rendering comments when enabled

Configuration

  • Added SITE_METADATA.comments with Disqus provider support in src/consts.ts
  • Helper function areCommentsEnabled() to centralize enable check

Layout Integration

  • Both PostLayout.astro and SimplePostLayout.astro now render <Comments /> at post end
  • ScrollTopAndComments component extended with conditional "Scroll to Comment" button

Usage

Enable by setting shortname in src/consts.ts:

comments: {
  provider: 'disqus',
  disqusConfig: {
    shortname: 'your-disqus-shortname',
  },
}

When disabled, zero runtime overhead - components don't render and scripts don't load.

Architecture supports future providers (Giscus, Utterances) via the provider field.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/tailwind-astro-starting-blog/tailwind-astro-starting-blog/node_modules/.bin/astro build (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/tailwind-astro-starting-blog/tailwind-astro-starting-blog/node_modules/.bin/astro dev (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add comments blog (Discuss)</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel

vercel Bot commented Feb 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasb Ready Ready Preview, Comment Feb 10, 2026 9:16am

Co-authored-by: wanoo21 <6537167+wanoo21@users.noreply.github.com>
Co-authored-by: wanoo21 <6537167+wanoo21@users.noreply.github.com>
…emove unnecessary signals

Co-authored-by: wanoo21 <6537167+wanoo21@users.noreply.github.com>
Co-authored-by: wanoo21 <6537167+wanoo21@users.noreply.github.com>
Copilot AI changed the title [WIP] Add comments feature to blog section Add Disqus comment system integration Feb 10, 2026
Copilot AI requested a review from wanoo21 February 10, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comments blog (Discuss)

2 participants