君陌离的博客

vuePress-theme-reco 君陌离    2018 - 2020
君陌离的博客 君陌离的博客

Choose mode

  • dark
  • auto
  • light
首页
我的作品
  • 项目橱窗
  • blog模板
分类
  • 数据库
  • CSS
  • 摘记
  • JS
  • Node
  • Vue
  • React
  • GIT
  • Promise
  • Liunx
  • Xshell
  • ajax
  • WINDOWS
  • Python
  • 随笔
  • 脚手架
  • node
  • 自动化
标签
笔记
时间线
About Me
  • 关于我
  • 赞赏
Contact
  • GitHub
  • QQ
author-avatar

君陌离

70

文章

90

标签

首页
我的作品
  • 项目橱窗
  • blog模板
分类
  • 数据库
  • CSS
  • 摘记
  • JS
  • Node
  • Vue
  • React
  • GIT
  • Promise
  • Liunx
  • Xshell
  • ajax
  • WINDOWS
  • Python
  • 随笔
  • 脚手架
  • node
  • 自动化
标签
笔记
时间线
About Me
  • 关于我
  • 赞赏
Contact
  • GitHub
  • QQ
  • HTML5

  • JS

  • 微信小程序

  • 数据库

  • React

  • Vue

  • vuepress

    • vuepress的seo优化
    • vuepress配置百度统计
    • vuepress集成第三方搜索引擎

vuepress集成第三方搜索引擎

vuePress-theme-reco 君陌离    2018 - 2020

vuepress集成第三方搜索引擎

君陌离 2020-08-10 02:26:40 vuepress第三方搜索引擎vuepress-plugin-thirdparty-search

# vuepress 集成第三方搜索引擎

yarn add vuepress-plugin-thirdparty-search -D
1

修改 config.js, 添加插件配置

// 配置插件vuepress-plugin-thirdparty-search, 默认主题的搜索框集成第三方搜索引擎
[
  "thirdparty-search",
  {
    thirdparty: [
      // 可选,默认 []
      {
        title: "在谷歌中搜索",
        frontUrl: "https://www.google.com.hk/search?q="
      },
      {
        title: "在百度中搜索", // 在搜索结果显示的文字
        frontUrl: "https://www.baidu.com/s?wd=", // 搜索链接的前面部分
        behindUrl: "" // 搜索链接的后面部分,可选,默认 ''
      },
      {
        title: "在360中搜索",
        frontUrl: "https://www.so.com/s?q="
      }
    ]
  }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
欢迎来到 您的站点名称($site.title)
看板娘