-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page comments / discussions #163
Comments
some notes on implementing this:
|
@khalilcodes thanks for update. Could you give a bit more detail on our "standard" (as of yesterday 🤣) questions:
I've added this checklist for you to the description |
@rufuspollock I have added some answers in description notes. |
@khalilcodes i would support multiple providers like Pliny. If we can import components from pliny that is even better than copying and pasting as we don't have to maintain here. |
Closes #163 New feat: Page comments / discussions ### Changes * Create components in core for giscus, utterances and disqus * Add configs in frontmatter and config.js * Core version bump 0.2.0 * Add env variables ((netlify) for giscus * Create documentation
Custom giscus.json file in site's root to restrict the domains that can load giscus with our repository's discussions.
@khalilcodes and @olayway great work everyone 👏 Quick questions / comments:
Finally when closing issues (and i know this closed by PR) can we copy over some info especially on "big" issues like this one so that when looking at issue in roadmap or board it is easy to see what happened. Here just a link to docs page and a FIXED would have been sufficient i think! |
it's turned on for blog pages atm for eg. https://flowershow.app/blog/2023-01-25-updated-features Will do the other changes 👍 |
add prop-types dependency as disqus-react fails to resolve module when creating new flowershow site.
Closes #163 New feat: Page comments / discussions ### Changes * Create components in core for giscus, utterances and disqus * Add configs in frontmatter and config.js * Core version bump 0.2.0 * Add env variables ((netlify) for giscus * Create documentation
Custom giscus.json file in site's root to restrict the domains that can load giscus with our repository's discussions.
add prop-types dependency as disqus-react fails to resolve module when creating new flowershow site.
Closes #163 New feat: Page comments / discussions ### Changes * Create components in core for giscus, utterances and disqus * Add configs in frontmatter and config.js * Core version bump 0.2.0 * Add env variables ((netlify) for giscus * Create documentation
Custom giscus.json file in site's root to restrict the domains that can load giscus with our repository's discussions.
add prop-types dependency as disqus-react fails to resolve module when creating new flowershow site.
When publishing a page I want to allow visitors to post comments so that I get feedback
Implementation: suggest we build on (and contribute to) pliny, see https://github.com/timlrx/pliny/tree/main/packages/pliny/src/comments
Acceptance
How it works
Comments go into discussions' comments category.
https://github.com/giscus/giscus#how-it-works
https://giscus.app/ (see Page <-> Discussions Mapping section)
We are using
pathname
for mapping with page. giscus will search for a discussion whose title contains the page's pathname URL component. If there are no matches (means no comments), then a new one is created for that page.Tasks
✅ 2023-02-04 Update/Fixes
Research / Design
✅ 2023-01-25 Using pliny approach but with imported components from providers
Implementation
✅ 2023-01-31
Notes
core/ui/Comments
and rendered based on config values -GiscusConfig | DisqusConfig | UtterancesConfig
.next.config.js
and env variablesLayout.tsx
which is rendered based on config and pageProps values.If we are looking to use a single provider but are not sure about adding more in future, then this approach would be the route to take. My thoughts are since this is a plug it in kind of model and because provider components can be replaced easily, I would be leaning to use this. But I'm also interested to research what are the other ways this can be implemented.
The text was updated successfully, but these errors were encountered: