站点搜索与评论功能集成指南

为提升网站功能,介绍如何集成站点搜索和评论功能。

站点搜索功能集成

  1. 选择服务提供商: Swiftype
  2. 服务地址: Swiftype官网
  3. 集成步骤:
    • 参考 Swiftype 官方文档完成设置。
    • 在网站配置文件 _config.yml 中添加 swiftype.searchId 字段,并在其中填写从 Swiftype 获取的 Search ID。
    • 将以下代码片段插入网站主题模板中: html [removed] _st('install', 'swiftype.searchId', '2.0.0'); [removed]

评论功能集成

  1. 选择服务提供商: Disqus
  2. 服务地址: Disqus官网
  3. 集成步骤:
    • 参考 Disqus 官方文档完成设置和集成。
zip 文件大小:4.44MB