Giter Club home page Giter Club logo

blog.unusebamboo.top's Introduction

这是一个基于 Giscus 的个人博客评论仓库, 除此之外, 没有其他用途.

Butterfly 中的 giscus 配置

下面是配置 Butterfly 中配置 Giscus 步骤:

  1. 在 github 上新开一个公共的项目: https://github.com/unlessbamboo/blog.unusebamboo.top
  2. 按照https://giscus.app/zh-CN提示的步骤一步步进行设置调整:
  • 设置项目为公开
  • 为该项目安装 giscus app
  • 在项目中开启 Discussions
  1. https://giscus.app/zh-CN页面的仓库中输入 unlessbamboo/blog.unusebamboo.top, 该网站会自动识别输入的仓库是否正确, 如果没有问题, 在下方选择好推荐的公告分类, 选择特性, 那么在启用giscus就会出现专属于当前项目的 script 信息, 里面包含的 repo, repo-id, category-id等重要信息

至此在 github 的配置完成, 此时还需要这些信息放到 Butterfly 中, 在_config.butterfly.yml 中找到 Comments, 设置如下配置:

comments: # 通用设置
  use: Giscus
  text: true
  lazyload: false
  count: false
  card_post_count: false

giscus:
  repo: unlessbamboo/blog.unusebamboo.top
  repo_id: xxxxid
  category_id: ccccccid
  theme:
    light: light
    dark: dark
  option:

之后重启整个 hexo 就能看到文章最下方有评论了.

blog.unusebamboo.top's People

Watchers

unlessbamboo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.