辣椒の酱

Results 63 comments of 辣椒の酱

### 6.配置文件注释注意问题!!! 配置前面有此 `-` 的需要把此 `-` 一起注释掉,否则编译会报错!

### 7.gitalk 评论使用 - 配置文件中开启如下配置 ```yaml comment: type: gitalk owner: removeif # (required) GitHub user name repo: blog_comment # (required) GitHub repository name client_id: 46a9f3481b46ea0129d8 # (required) OAuth application client...

### 8.首页增加banner,热门推荐和banner只能存在一个,如果两个都有热门推荐优先 感谢水寒提供的[教程](https://dp2px.com/2019/08/13/hexo-carousel/) 开启方法,配置中开启以下配置 ```yaml has_banner: false #首页是否有banner,true-是,false-否,如果配置了热门推荐显示热门推荐,banner配置数据在json_data/banner.json里按照配置格式配置好,至少三条 ``` 数据文件在themes/amazing/source/json_data/banner.json 中,配置成对应格式就好,**图片长宽一致** 效果如下 https://dogzi.fun/ ![](https://cdn.jsdelivr.net/gh/removeif/blog_image/img/2020/20200418175914.png)

### 9.针对热门推荐没标题的问题 如图所示: ![image](https://user-images.githubusercontent.com/10427139/80303071-86ab0380-87e0-11ea-9436-d00b7e42094e.png) 此页面是page 友链页面,生成issue的时候page没有title,如下对应issue ![image](https://user-images.githubusercontent.com/10427139/80303109-b9ed9280-87e0-11ea-862b-62023e272401.png) 可以自己手动加上,只需要编辑issue标题。比如上面的友链issue标题改成 友链 - 帕奇笔记 就可以了,注意-前后有个空格

### 10.添加自定义widget + 主题 文件中_config.yml 添加 ```yaml - position: right type: notice contents: 1: 2019.8.15 主题开源 2: 2020.5.20 添加公告widget 3: 2020.5.21 公告测试 ``` + include/schema/common/widgets.json 文件中添加 ``` , { "$ref":...

> 为什么Adsense不写成config而是是新的branch? config里面有一个Adsense,但是只有一个widget,回头有空加进master branch,可配置多个adsense单元

> 博主您好,您的模板很棒。请问为什么我的友链模块为什么用不了,就归档模块可以用。附我的域名:www.nuclear.ink 看下[这条](https://github.com/removeif/hexo-theme-amazing/blob/master/README.md#%E5%BC%80%E5%A7%8B%E9%83%A8%E5%88%86%E9%85%8D%E7%BD%AE)放相应的文件没有

其他页面放置博客中的位置如下,仓库中有博客分支,不知道怎么当独使用主题的,可以直接clone site分支然后hexo c hexo g hexo s 就可以看效果了 ![image](https://user-images.githubusercontent.com/10427139/95642241-ddc83a80-0ad9-11eb-880c-0f91554f8468.png)

> 博主你好,我的最新文章列表中 文章的首图不能缩放不知道是哪里出问题了。fork的master分支 > blog:https://hellosyl.github.io/ > ![image](https://user-images.githubusercontent.com/33077863/95683898-8bddfc80-0c20-11eb-9d1f-2807b8216720.png) 可以尝试以下操作,替换博客下面的这个[包依赖文件](https://github.com/removeif/hexo-theme-amazing/blob/site/package.json)(并非主题文件夹里)的内容 然后: 删除博客目录下node_modules已有依赖包 博客目录下执行 npm install 安装依赖包 安装完后如果要使用置顶功能,需要重新修改node_modules中相应文件

> > > 博主你好,我的最新文章列表中 文章的首图不能缩放不知道是哪里出问题了。fork的master分支 > > > blog:https://hellosyl.github.io/ > > > ![image](https://user-images.githubusercontent.com/33077863/95683898-8bddfc80-0c20-11eb-9d1f-2807b8216720.png) > > > > > > 兄弟解决了吗,删除node_modules容易,可是怎么把原来的环境都下回来呢? > > 还没有;环境恢复的话执行下面命令重新下载安装依赖就回来了,如果怕不是之前的样子你可以先备份一下根目录的package.json文件,他就是安装这个文件的配置下载对应模块的。 > > ```shell > npm install >...