volantis-x / hexo-theme-volantis

A Wonderful Theme for Hexo.
https://volantis.js.org
MIT License
2.03k stars 604 forks source link

我是使用的应该是2.0版本,在使用{% span red, 红色%}有的时候渲染不出来 #437

Closed shiaqiya closed 4 years ago

shiaqiya commented 4 years ago

自检报告

第一步:查阅文档

第二步:测试原生代码

打开终端,执行下面的命令:

git clone https://github.com/volantis-x/demo.git && cd demo && npm i && hexo s

结果是否能够正常运行?

A. 能正常运行,代表主题和当前环境配置都没有问题。 B. 不能正常运行,代表主题或者环境配置有问题,建议在下方对应位置附上环境配置信息。

问题描述

环境信息

复现地址

截图

相关截图

浏览器、操作系统

配置文件

配置文件 #### 站点配置文件 ```yml 在这里粘贴 `blog/_config.yml` 中修改过的部分 ``` #### 主题配置文件 ```yml 在这里粘贴 `themes/volantis/_config.yml` 中修改过的部分 ``` #### node.js & npm ``` 在这里粘贴 `node -v && npm -v` 输出的信息 ``` #### package.json ``` 在这里粘贴 `npm ls --depth 0` 输出的信息 ```
MHuiG commented 4 years ago

有的时候是指什么

shiaqiya commented 4 years ago

在同一篇博客中,上面还能正常显示红色,接着下一个就不是了,同一篇中,有的时候都能渲染,有的时候只有个别能渲染成功

shiaqiya commented 4 years ago

https://codeaqi.top/2020/07/20/mysql-zhi-shi-dian-chuan-lian/index.html?_sw-precache=1159cfa83a4b13567c9ace3fa36173e4 就比如这个,第二个标题,操作数据库

MHuiG commented 4 years ago

检查一下是不是少了换行符

shiaqiya commented 4 years ago

检查一下是不是少了换行符

{% span red, 红色%} 我记得解释文档中没有提到换行符,我去试试

shiaqiya commented 4 years ago

检查一下是不是少了换行符

还是没有渲染成功,新版本我还没有用不知道会不会出这样的小问题

MHuiG commented 4 years ago

可以提供一下markdown版本的原始文章(.md文件)吗

shiaqiya commented 4 years ago

当然可以

发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用

发件人: Hmailto:notifications@github.com 发送时间: 2020年8月13日 22:29 收件人: volantis-x/hexo-theme-volantismailto:hexo-theme-volantis@noreply.github.com 抄送: 阿琪mailto:shiaqiya@outlook.com; Authormailto:author@noreply.github.com 主题: Re: [volantis-x/hexo-theme-volantis] 我是使用的应该是2.0版本,在使用{% span red, 红色%}有的时候渲染不出来 (#437)

可以提供一下原始文章的markdown版本

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/volantis-x/hexo-theme-volantis/issues/437#issuecomment-673512631, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANVI2Q4762KMUATSANXEHO3SAP2FXANCNFSM4P6DNJ3Q.

shiaqiya commented 4 years ago

可以提供一下markdown版本的原始文章(.md文件)吗

我发给你了,不知道你有没有收到

MHuiG commented 4 years ago

额😓,你可以上传到一个开源的github仓库里

MHuiG commented 4 years ago

可以提供一下markdown版本的原始文章(.md文件)吗

我发给你了,不知道你有没有收到

没有收到

shiaqiya commented 4 years ago

可以提供一下markdown版本的原始文章(.md文件)吗

我发给你了,不知道你有没有收到

没有收到

能给我你的qq邮箱吗,我发到你邮箱里面,微软的邮箱没用过,没发过去

shiaqiya commented 4 years ago

发过去了

MHuiG commented 4 years ago

收到了,我回去测试一下

shiaqiya commented 4 years ago

收到了,我回去测试一下

麻烦您了

MHuiG commented 4 years ago

https://volantis.js.org/scp/scp-437/ 放到官网中测试,{% span red, 红色%}标签是正常的

shiaqiya commented 4 years ago

https://volantis.js.org/scp/scp-437/ 放到官网中测试,{% span red, 红色%}标签是正常的

嗯,我看到了,有机会的话,我用新版主题吧

xaoxuu commented 4 years ago
  1. 写法上: %} 前后都要有空格
  2. 在上方贴出 package.json 内容
shiaqiya commented 4 years ago
  1. 写法上: %} 前后都要有空格
  2. 在上方贴出 package.json 内容

$ npm ls --depth 0 hexo-site@0.0.0 C:\blog +-- aplayer@1.10.1 +-- UNMET PEER DEPENDENCY hexo@4.2.1 +-- hexo-deployer-git@2.1.0 +-- hexo-generator-archive@1.0.0 +-- hexo-generator-category@1.0.0 +-- hexo-generator-index@1.0.0 +-- hexo-generator-json-content@4.2.3 +-- hexo-generator-search@2.4.0 +-- hexo-generator-tag@1.0.0 +-- hexo-helper-live2d@3.1.1 +-- hexo-offline@1.0.0 +-- hexo-permalink-pinyin@1.1.0 +-- hexo-prism-plugin@2.3.0 +-- hexo-renderer-ejs@1.0.0 +-- hexo-renderer-marked@2.0.0 +-- hexo-renderer-stylus@1.1.0 +-- hexo-server@1.0.0 +-- hexo-tag-aplayer@3.0.4 +-- hexo-wordcount@6.0.1 `-- live2d-widget-model-shizuku@1.0.5

npm ERR! peer dep missing: hexo@^3.2.2, required by hexo-offline@1.0.0

shiaqiya commented 4 years ago

刚刚,我尝试了你们的3.0版本,在本地已经渲染成功了!

xaoxuu commented 4 years ago

好的,最好 hexo 也升级到 5.0.2