🇨🇦
hexo-theme-redefine
BlogGithub
English
English
  • Project Description
  • Get Started
    • Installation
    • Update
    • Usage
  • Configuration
    • Create a theme config file
    • base_info
    • style
      • primary_color
      • avatar
      • favicon
      • article_img_align
      • left_side_width
      • content_max_width
      • nav_color
      • hover
      • first_screen
      • scroll
    • social_contact
    • menu
    • home_article
    • post
      • word_count
      • author_label
    • toc
    • copyright_info
    • website_count
    • local_search
    • comment
      • use
      • Waline
      • Gitalk
      • Twikoo
    • rss
    • lazyload
    • cdn
    • pjax
    • footer
  • Advanced
    • Create a page
    • Note modules
    • Article top
    • Mathematical formula
    • Friendship style
    • file comparison
    • Resource compression
Powered by GitBook
On this page
  1. Configuration
  2. comment

Gitalk

PreviousWalineNextTwikoo

Last updated 2 years ago

Gitalk, a comment plugin based on Github Issue and Preact.

View details:

  • https://github.com/gitalk/gitalk

  • https://gitalk.github.io/

How to use in Redefine:

  1. Create a new GitHub OAuth App Register or login , , where Homepage URL and Authorization callback URL' Just fill in your own domain.

    After the OAuth App is successfully created, save the Client ID and Client Secret, which will be used later.

    Screen Shot 2022-10-02 at 10.24.53 AM
  2. Create a new GitHub repository Register or log in to , , and open Issues (manually add an Issue, the content Fill it in and you can open it), which is used to store the comment content.

  3. Fill in your GitHub username, repository name, Client ID and Client Secret of the OAuth App respectively in the theme configuration file, as shown in the following example.

    gitalk:
      github_id: EvanNotFound
      repository: hexo-site-comments
      client_id: cdffffffffffffffffffffff
      client_secret: f4b5555555555555555555555555555
  4. Gitalk comment plug-in renderings.

GitHub
Create a new OAuth App
GitHub
create a new repository (repository)
image