hbstack / theme-cards

HB cards style theme for building fast, responsive, modern and modular static websites.
https://theme-cards.hbstack.dev/
MIT License
32 stars 7 forks source link

Is plugin about comment replaceable #59

Closed GraceZhuuu closed 9 months ago

GraceZhuuu commented 9 months ago

Thanks for your work. And i have a question as the title, which that comment plugin need authority of github. And this function could be disabled or replaceable.

razonyang commented 9 months ago

Hi, you can disable it by removing the corresponding giscus modules from configuration (module.yaml) and related params (params.yaml).

  1. github.com/hbstack/blog/modules/giscus
  2. github.com/hbstack/docs/modules/giscus

Alternatives:

  1. https://hbstack.dev/modules/blog/comments/
  2. https://hbstack.dev/modules/docs/comments/

You can request a new one or create your own with hooks (hb-blog-post-comments and hb-docs-doc-comments).

// config/_default/params.yaml
hugopress:
  modules:
    custom:
      hb-blog-post-comments:
        cacheable: true
      hb-docs-doc-comments:
        cacheable: true
// layouts/partials/hugopress/modules/custom/hooks/hb-blog-post-comments.html
COMMENTS
// layouts/partials/hugopress/modules/custom/hooks/hb-docs-doc-comments.html
COMMENTS
GraceZhuuu commented 9 months ago

Ok, i'll try.
Thanks again, it's a wonderful job.