search: insight:false# you need to install `hexo-generator-json-content` before using Insight Search swiftype:xxxxxxxxxx# enter swiftype install key here baidu:false# you need to disable other search engines to use Baidu search, options: true, false
搜索引擎,当前版本配置了三个搜索引擎,insight需要npm安装hexo-generator-json-content,我这里安装后没有效果,故使用swiftype,百度官方不推荐 1、申请swiftype账号:https://app.swiftype.com/ 使用邮箱注册,貌似使用qq和139邮箱申请不行,我用了自己阿里云域名的邮箱才行:crontab@hellshan.top 2、点击create new engine,创建新引擎,填上你的域名,进入后点击Setup and integration,复制install key到配置文件就OK
comment: disqus:# enter disqus shortname here duoshuo:# enter duoshuo shortname here youyan:# enter youyan uid here facebook:# enter true to enable isso:# options for isso. changyan: valine:# Valine Comment System https://github.com/xCss/Valine on:true# enter true to enable valine appId:4O7x2fxxxxxxrdxFIAJn3v-gzGzoHsz# enter the leancloud application appId here appKey:k2d5KmEjtQeLw5IuRficyYsN# enter the leancloud application appKey here notify:# enter true to enable <Mail notifier>, default: false; https://github.com/xCss/Valine/wiki/Valine-%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92%E8%AE%BE%E7%BD%AE verify:true# enter true to enable <Validation code>, default: false placeholder:JustDoIt# enter the comment box placeholder avatar:identicon# (''/mm/identicon/monsterid/wavatar/retro/hide), more to see https://valine.js.org/avatar.html avatar_cdn:https://gravatar.loli.net/avatar/# avatar CDN address, default gravatar.cat.net pageSize:10# comments of one page visitor:true# count reading numbers; If true, the numbers will also show below the title of every post recordip:#false # If true, record commenter's ip, which is shown in LeanCloud pannel gitalk:
已经开启https,访问时还会提示您与此网站建立的链接并非完全安全,原因是我们的页面存在一些不安全的http请求,比如图片、js等静态文件。我们只需要将其升级为https请求即可。 vim /app/blog/themes/hueman/layout/common/head.ejs 页面的head中加入: