Coder Social home page Coder Social logo

candinya / kratos-rebirth Goto Github PK

View Code? Open in Web Editor NEW
587.0 8.0 78.0 15.79 MB

一只可爱的hexo主题 m(=•ェ•=)m~🍭

Home Page: https://kr-demo.candinya.com/posts/Kratos-Rebirth-Manual/

License: GNU General Public License v3.0

JavaScript 37.15% EJS 32.94% SCSS 29.91%
hexo blog theme cute

kratos-rebirth's Introduction

是猫。

kratos-rebirth's People

Contributors

arcticlampyrid avatar candinya avatar dependabot-preview[bot] avatar dependabot[bot] avatar fossabot avatar jht3qaq avatar korin5 avatar lotuses-robot avatar suitelhy avatar tsumugiwenders avatar vensing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kratos-rebirth's Issues

新功能建议: 折叠插件能否快捷地实现 [默认全部展开] 的功能

  1. 您的新功能建议是由使用时出现的不便引发的吗?
    关于折叠插件,未能在使用指南中找到 [快捷实现 [默认全部展开] 的功能],且根据查阅到的资料实现较为困难,需要插件封装并实现 [对应功能的配置项]。

  2. 请描述您所设想的功能或是解决方案

  • 【没有实现描述功能的情况】

方案一. 简单地实现所描述的功能,并在文档的相应章节更新最新的示例代码

  • 【实现了描述的功能,文档未明确的情况】

方案一. 完善文档的示例代码

  1. 补充内容:

image

  • 功能实现效果(说明)

image

在列表标题超过2行的时候 内容简介过多会导致样式错位

  1. 对Bug的描述:

在列表标题超过2行的时候 内容简介过多会导致样式错位
2. 复现Bug的方法:

新增文档,将内容标题书写过长 超过2行
此时简介区内容过多的时候会出现样式错位
3. 期望的行为:
修复建议:
对代码中 kratos-entry-header-new样式名增加新的样式

.kratos-entry-header-new{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
  1. 相关的截图:

image

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):

mac os 11.4
chrome 最新版
sfair 14.1.1
任何系统下都会出现这个问题
6. 补充内容:

侧边栏取消后的居中问题

你好~有关之前侧边栏取消之后,我想把post_type设为true然后他的图片似乎还是原来的排版,感觉上是侧边栏的隐藏问题?
image

更新到1.4.4后,使用valine报错

Hello~,我从1.4.3更新到1.4.4后,配置好valine,然后文章配置comments=true,本地启动hexo后爆下面的错误。

将comments设置为false后能正常进去文章的页面。

请问需要怎么解决?

Unhandled rejection Error: /Users/path/to/blog/themes/KratosRebirth/layout/post.ejs:83
    81|         <% } %>
    82|         <% if (theme.posts.comments && page.comments && page.title && !page.link) { %>
 >> 83|             <%- partial('_comments/' + theme.posts.comments) %>
    84|         <% } %>
    85|     </article>
    86| </section>

Partial _comments/vanila does not exist. (in post.ejs)
    at Object.partial (/Users/path/to/blog/node_modules/hexo/lib/plugins/helper/partial.js:16:11)
    at eval (/Users/path/to/blog/themes/KratosRebirth/layout/post.ejs:156:17)
    at post (/Users/path/to/blog/node_modules/ejs/lib/ejs.js:682:17)
    at _View._compiled (/Users/path/to/blog/node_modules/hexo/lib/theme/view.js:136:50)
    at _View.render (/Users/path/to/blog/node_modules/hexo/lib/theme/view.js:39:17)
    at /Users/path/to/blog/node_modules/hexo/lib/hexo/index.js:64:21
    at tryCatcher (/Users/path/to/blog/node_modules/bluebird/js/release/util.js:16:23)
    at /Users/path/to/blog/node_modules/bluebird/js/release/method.js:15:34
    at RouteStream._read (/Users/path/to/blog/node_modules/hexo/lib/hexo/router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:469:10)
    at resume_ (_stream_readable.js:956:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

[Bug收集] 主题相关的Bug收集

关于

由于最近一些功能的开发写得比较仓促,我只是将我看见的模块的配色进行了修改,原来的样式表文件里并没有仔细处理过,所以可能还会存在一些相关的细节Bug(如部分页面的模块配色、一些细节的颜色变化等)等待解决。包括新加入的搜索功能,由于各方面也都还在测试,所以一定会存在不少瑕疵与漏洞。如果您在最新版本上有发现任何功能上的问题,并且确认了在本站复现的话,您可以在这里回复,协助我们一起解决。

已知的问题

  1. Disqus在热切换主题的时候不会变更颜色 (由Disqus的加载机制引起,因为使用的是iframe,所以样式表不好穿透设置;而Disqus初始化时会自动检测主题配色,所以刷新即可配色正常)。DisqusJS加载的评论区不受影响。
  2. 被选择的文本颜色没有高亮显示 (已修复)
  3. 搜索遇到特殊字符(例如英文问号)时会炸正则表达式(似乎是比较麻烦) (将搜索关键词字符化,暂时已修复)
  4. Github Actions还没写好,由于一些破事耽误了进程,到时候会再调试(似乎是git拉取的方式是https则无法使用私钥提交,怀疑可能需要使用公钥来拉取,具体的还等待进一步测试)(已经解决)
  5. 搜索相关的代码似乎在样例站点出现了意外报错,具体位置等待进一步确认(分类问题,设置了默认分类标签了,搜索部分的细节代码等待进一步调整修改)

脚页部分是否可以修改呢?如何修改?

我看到了footer.ejs和kratosr.min.css里面有涉及到脚页的内容,但是还是不知道如何下手去修改。例如如何将脚页的高度修改的小一点,以及如何改成白色背景?
image

Bug 回报:文章过期提醒功能某些情况下重复添加警告框

  1. 对Bug的描述:
  • 文章过期时间功能某些情况下重复添加警告框
  • 在非文章详情页面也会执行 expireNotify 函数,这是不必要的
  1. 复现Bug的方法:
    1 前往一篇带有文章过期提醒的详情页面;
    2 点击导航栏上的任意菜单;
    3 点击浏览器 go back 按钮,返回查看之前打开的文章历史记录网页;
    4 文章过期提醒框重复添加。
    这是 pjax 引起的问题。

  2. 期望的行为:

不会重复添加文章过期提示框;在非文章详情页面不执行 expireNotify 函数。

  1. 相关的截图:

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
  1. 补充内容:
    可以在 post.ejs 中实现文章过期提醒功能,这种实现方式只会在文章 post 详情页面执行过期提醒逻辑 (避免在其他页面执行不必要的函数),且不会重复添加提示框;刷新页面时提示框不会延迟追加到 DOM 节点上,js 编程的方式刷新页面会闪一下页面延迟追加。
<% if (theme.expire.enable) { %>
    <% const diffDays = moment(new Date()).diff(moment(page.updated), 'day');  
        const expireDay = theme.expire.day;
    %>
    <% if (expireDay!=0 && diffDays > expireDay) { %>
        <div class="alert alert-warning" role="alert">
            本文最后编辑于 <%= diffDays %> 天前,其中的内容可能需要更新。
        </div>
    <%  } %>
<%  } %>

在 ejs 中实现如上所示,需要在 _config.yml 中新增:

expire:
  enable: true
  day: 30

是否可以 PR ~

左下角播放器如何修改

如何关掉歌词显示,可以换左下角播放器的样式吗?手机版搜索会挡住播放器歌曲列表的按钮,这样的化无法自选选歌
QQ图片20210322115455

Bug 回报:package.json依赖中有较多的模块版本有漏洞

  1. 对Bug的描述:
    在主题文件夹中使用npm install 安装相关npm modules 时,npm audit审计报出依赖中有较多漏洞。

  2. 复现Bug的方法:
    可以使用如下的方案进行复现:
    在最新版本的主题文件夹下使用npm install 报出依赖有漏洞。

  3. 期望的行为:
    正常安装安全依赖

  4. 相关的截图:
    image
    image

  5. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
    操作系统:Win10 wsl2 (Ubuntu 20.04)
    浏览器:Chrome 91.0.4472.124
    Nodejs:16.4.2
    npm:7.19.1

  6. 补充内容:
    在使用npm audit fix 之后,依旧存在此问题。
    PS: 找到使用ncu自动更新npm module后漏洞数量减少
    image
    image

Bug 回报:requestIdleCallback API 在 Safari 浏览器上不支持,导致文章底部评论框加载失败

  1. 对Bug的描述:
    window.requestIdleCallbackwindow.cancelIdleCallback API 在 Safari 浏览器上不支持,导致文章底部评论框加载失败

  2. 复现Bug的方法:
    在 Safari (iOS/iPadOS/macOS) 浏览器上访问开启评论留言的页面时,因 Safari 浏览器上不支持/未开启window.requestIdleCallbackwindow.cancelIdleCallback API,导致评论功能加载失败。

  3. 期望的行为:
    能在 Safari 浏览器上正常使用各种评论插件显示评论。

  4. 相关的截图:


    see: https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestIdleCallback

  5. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
    window.requestIdleCallbackwindow.cancelIdleCallback API 在 Safari 浏览器上不支持

  6. 补充内容:
    可以用 setTimeout() 重构 window.requestIdleCallbackwindow.cancelIdleCallback API 来解决 Safari 上的兼容问题,我将发起 PR : )
    see: https://developer.mozilla.org/zh-CN/docs/Web/API/Background_Tasks_API

新功能建议: 在首页为每篇文章添加阅读次数

  1. 您的新功能建议是由使用时出现的不便引发的吗?


2. 请描述您所设想的功能或是解决方案

在首页为每篇文章添加阅读次数,可以放在日期和tag之后,阅读全文之前。这样方便在首页查看每篇文章的热度。
3. 补充内容:

也可以添加评论次数,甚至可以把右侧边栏的最新文章改为最热文章排名。

Bug 回报:主题配置 → 文章页面:【sticky】对应的数字权重与使用指南不一致

  1. 对Bug的描述:
    使用手册中的[主题配置 → 文章页面:【sticky】对应的数字权重]与所描述的“数字越大优先级越高”不一致,实际效果为[数字越大优先级越低]。

image

  1. 复现Bug的方法:
    image
    image
    image

  2. 期望的行为:
    方案一. 修正使用手册的对应配置项说明。
    方案二. 修改代码使配置项【sticky】实现的功能与使用手册的描述一致。

  3. 相关的截图:
    image

  4. 对应版本
    image

  5. 补充说明
    影响不大,小问题。有空就改,没空就摸鱼

Bug 回报:归档界面出现 Status 的统计,可能会出现空年份

  1. 对Bug的描述:
    Status(无标题文章)使用了不同的年份,如果全都为特殊年份的部分置顶,会导致归档页面出现一个没有内容的空年份,可能需要重写年份判断机制

  2. 复现Bug的方法:
    如上所述

  3. 期望的行为:
    删掉归档页面中关于status的统计(年份+计数)

  4. 相关的截图:

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
  1. 补充内容:
    另,可能考虑重载 asset_img 辅助函数,或是使用特殊的方案防止不该被放大的图片出现放大功能

新 功能

能支持valine吗?valine真的很好,而且我想在markdown生成的html中,head自动加上谷歌等使用站长资源要加的那个,还有谷歌百度一些统计访问人数的东西

Bug 回报:关于新设置好友面问题

  1. 对Bug的描述:
    该Bug导致无法正常渲染页面等等。

  2. 复现Bug的方法:
    部分报错

ERROR Theme config load failed.
ERROR {
  err: YAMLException: bad indentation of a mapping entry (159:86)

   156 |  ...
   157 |  ...
   158 |  ...
   159 |  ...                    description: "好伙伴们在哪里~"
  ------------------------------------------^
   160 |  ...
   161 |  ...                  - name: "Talk"

我的修改

# Friends 友链相关内容
friends:
  href: "friends"
  page:
    title: "好伙伴们"
    comments: false                                                       description: "好伙伴们在哪里~"
    updated: "2021-01-18"
  list:                                                                 - name: "Talk"
    bio: "Talk"
    avatar: "../images/avatar.webp"
    link: "http://ghome.byethost10.com/"                            verify: true # 验证 每个友链的可访问性,炸了会有提示
  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):

Valine文章阅读量统计没有生效

Hello~

我在配置文件中设置valine.visitor=true,设置好了app_idapp_key。按照网上的例子在LeanCloud上创建了一个名为Counter的Class,但是每次刷新文章页面,文章的阅读次数一只都是0,我开启了评论功能,评论功能生效了,说明LeanCloud应该是能正常使用的,请问要使阅读量统计生效还要做什么配置吗?

请告诉我怎么安装

我没有在文档里看到主题
theme文件
git clonehttps://github.com/Candinya/Kratos-Rebirth/ theme 类似这段的代码
请问要怎么安装这个主题呢

嘛,关于实现的一点小疑问

...我之前见过和这个一样的非HEXO主题...看起来好像是单页面应用...当时很感兴趣..
但,我用的HEXO嘛,就没有去研究那个..
这个我看了下似乎也是单页面应用这种模式的,点击以后不是跳转而是一个XHR请求....
看起来是后端路由?在HEXO的框架下..这个是通过什么手段实现的呢?
总不至于是前端发起GET请求然后处理获得的HTML页面吧...
如果是这样....恩..拦截普通的URL跳转...发起GET请求,页面整体替换/部分替换..毛病倒是没有....

Bug 回报:share.ejs 中 excerpt 摘要模板字符串与颜文字 (┓( ´∀` )┏ ) 冲突

  1. 对Bug的描述:

share.ejs 中 excerpt 摘要模板字符串( `...` )与颜文字 (┓( ´∀` )┏ ) 冲突,导致语法错误:Uncaught SyntaxError: Unexpected token ')',即模板字符串提前识别完成,后续字符串无法识别为模板字符串。分享功能也无法正常使用。

function share(dest) {
const qqBase = "https://connect.qq.com/widget/shareqq/index.html?";
const weiboBase = "https://service.weibo.com/share/share.php?";
const qzoneBase = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?";
const facebookBase = "https://www.facebook.com/sharer/sharer.php?";
const twitterBase = "https://twitter.com/intent/tweet?";
const hostUrl = "<%- page.permalink %>";
const title = "「<%- page.title %>」";
const excerpt = `<% if (page.excerpt){ %><%- trim(strip_html(page.excerpt)) %><% } else { %><%- truncate(strip_html(page.content), {length: 120}) %><% } %>`;
let _URL;
switch (dest) {
case "qq" : _URL = qqBase+"url="+hostUrl+"&title="+title+"&desc=&summary="+excerpt+"&site=cxpy"; break;
case "weibo" : _URL = weiboBase+"url="+hostUrl+"&title="+title+excerpt; break;
case "qzone" : _URL = qzoneBase+"url="+hostUrl+"&title="+title+"&desc=&summary="+excerpt+"&site=cxpy"; break;
case "facebook" : _URL = facebookBase+"u="+hostUrl; break;
case "twitter" : _URL = twitterBase+"text="+title+excerpt+"&url="+hostUrl; break;
}
window.open(_URL);
};

  1. 复现Bug的方法:
  • 文章摘要前面部分加入颜文字 (┓( ´∀` )┏ )
  • 打开控制台报语法错误
  • 分享功能失效
  1. 期望的行为:

分享功能正常使用(很少用到qwq)

  1. 相关的截图:

WeChat Screenshot_20210526115549

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
  1. 补充内容:

慎用颜文字!!!

侧边栏内容居中问题

你好~非常喜欢你的主题&感谢你的无私分享!!
有个小问题,我将siderbar设置为none,但是内容并没有居中,请问有什么办法可以解决这个问题吗0.0

Page excerpt 引起的文章详情页无法访问

经测试发现,若没有在文章.md文件中设置 <!-- more --> 首页的文章概要,在访问该文章时,会导致share.ejs 分享插件出错。

Unhandled rejection ReferenceError: D:\HEXO\themes\Kratos-Rebirth\layout\post.ejs:32
    30|                     <% if (theme.posts.share) { %>
    31|                         <a class="Share" href="javascript:;"><i class="fa fa-share-alt"></i> 分享</a>
 >> 32|                         <%- partial('_partial/share', {page: page}) %>
    33|                     <% } %>
    34|                     </div>
    35|                 <% } %>

D:\HEXO\themes\Kratos-Rebirth\layout\_partial\share.ejs:44
    42|             var host_url="<%- page.permalink %>";
    43|             var title="【<%- page.title %>】";
 >> 44|             var excerpt="<% if (page.excerpt){ %><%= strip_html(page.excerpt) %><% } else { %><%- strip_html(truncate(post.content, 45)) %><% } %>";
    45|             var _URL;
    46|             if(obj=="qq"){
    47|                 _URL=qqShareURL+"url="+host_url+"&title="+title+"&desc=&summary="+excerpt+"&site=cxpy";

Mac风格代码块:高亮问题

  1. 对Bug的描述:
    奇怪的渲染

  2. 可能冲突的环境:
    插件:"hexo-prism-plugin": "^2.3.0"
    部分根目录配置:

highlight:
  enable: false
  line_number: false
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false

prismjs:
  enable: true
  preprocess: true
  line_number: false
  tab_replace: ''

prism_plugin:
  mode: 'preprocess'
  theme: 'default'
  line_number: true   # default false
  custom_css: 'path/to/your/custom.css'     # optional
  1. 复现过程:
    1.任意创造一个页面,写入多个较长的代码块

  2. 排查过程:
    1,hexo-admin直接在线预览确认代码块是否写法正确
    2,换用官方landspace主题

Stackpath CDN Problem

image

You use a Stackpath CDN to load the font-awesome.min.css and some other files. If users access your site in Mainland China, they will have a bad experience while loading the css files.

You might want to use Google Page Insight in order to spot out the exist problems.

Bug 回报:(请简略描述Bug的情况)

clone了这个主题后, 设置好了菜单,添加文章后,不能正常启用valine的评论功能。
看了一下博主的源码,没有找到问题所在。valine的appkey已经替换成了自己的,请求博主支援拉

Bug 回报:(请简略描述Bug的情况)

  1. 对Bug的描述:

部署好站点后点击站点文章无法跳转进文章内容

  1. 复现Bug的方法:

安装过程中出现错误

  1. 期望的行为:

文章可正常访问

  1. 相关的截图:

Blog错误

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
  1. 补充内容:

配置文件都是初始的,并无问题。别的主题可以使用

新功能建议: Valine优化

Screenshot_2020-11-21-19-42-49
如图,我想要将用户名等等修改为可选项,如果用户名不填则显示我的自定义无名氏用户名。
我还想要头像设置成如上的random,评论显示系统环境及浏览器是什么。

Bug 回报:Hexo生命周期事件与主题注入代码的冲突

  1. 对Bug的描述:
    在Hexo的生命周期中,主题代码注入与配置读取是同步进行的;本主题虽然目前使用的是processAfter并且没有使用once限制来暴力注入以提升可靠性,但这种方式(尤其是一些比较消耗资源的操作)无疑会导致严重拖累Hexo的性能。目前我们还在研究相关的解决方案,单纯使用once单次调用并不可靠(很有可能导致构建爆炸),使用ready事件则直接爆炸(好像没有被调用?)

  2. 复现Bug的方法:
    暂无

  3. 期望的行为:
    正确构建,并且支持将配置文件迁移到站点文件夹下

  4. 相关的截图:
    image

  5. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
    Github CI:构建成功
    CloudFlare Pages:构建失败

  6. 补充内容:
    https://github.com/hexojs/hexo/blob/92b979f4a3fa8714aebd3d11c3295d466b870905/lib/hexo/index.js#L239-L248
    image

Bug 回报:config微博设置,访问用户名找不到

  1. 对Bug的描述:
    config中微博设置问题

  2. 复现Bug的方法:

  • 填入自己的用户名
  • 找不到该页面(404 not found)
  1. 期望的行为:
    应该不是
    https://weibo.com/u/real_greenhandzdl
    https://m.weibo.cn/u/real_greenhandzdl?&jumpfrom=weibocom
    而是
    https://m.weibo.cn/u/6570808175?uid=6570808175&t=0&luicode=10000011&lfid=100103type%3D1%26q%3Dreal_greenhandzdl

Bug 回报:顶部导航栏的RSS地址点击后返回键异常

  1. 对Bug的描述:

当前主题的顶部导航栏应该有两种判断:

  • 如果使用了相对地址,那么在本页面打开,比如已有的 /archives/ /friends/
  • 如果使用了绝对地址,那么在新页面打开,比如 https://candinya.com

如果在里面加入 RSS 地址,例如 /atom.xml,那么也会在本页面打开。
但是在这个页面中,可能由于没有使用到主题,因此这个页面的返回键异常,点击返回无法返回之前的页面。

  1. 复现Bug的方法:

可以使用如下的方案进行复现:

  • 编辑项目的配置文件,将 Top Menu 临时改为:
...
# Top Menu 顶部导航栏配置 (具体格式请参照文档)
menu:
  index: /atom.xml
...
  • 重新编译页面并部署。打开页面,点击 '首页',跳转到 https://[url]//atom.xml
  • 点击浏览器返回,发现网址变了,页面没变。
  • 看,出错了吧!
  1. 期望的行为:
    正常返回,或者跳出?

  2. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):

  • windows 10, 20H2, 19042.928
  • chrome: 90.0.4430.93(正式版本)(64 位)
  • edge: 90.0.818.51 (官方内部版本) (64 位)

文章随机图标自定义配置

  1. 您的新功能建议是由使用时出现的不便引发的吗?
    想要给站点博文 拓展 自定义的随机图标,结果发现 随机图标有数量限制(最多20张图片).
    我想要放上100张美图

  2. 请描述您所设想的功能或是解决方案

    • (如果未提供相应的拓展功能和公开配置项)方案一. 提供类似于
      ## 随机头图的数量
      thumbnail:
          random_amount: 19
      
      上述代码的配置方案.
    • (如果已实现拓展功能, 但是未公开或者在文档中说明配置项)麻烦完善一下项目文档,谢谢啦🍭~
  3. 补充内容:

Bug 回报:代码块被渲染成表格

  1. 对Bug的描述:

markdown上的代码块无法被主题识别(渲染),变成了表格的形式(以下作为截图呈现问题现状)
无法变成作者您的博客代码块的模式。之前我使用的博客没有出现问题,所以我排除了hexo本身的问题,并且猜测可能是缺失博客依赖插件的问题,由于我主管的猜测可能会是错误的结果,所以我将向您寻求答案,并寻求所解决的办法,谢谢。

  1. 复现Bug的方法:
  1. 期望的行为:

正常渲染

  1. 相关的截图:

image

  1. 运行环境(如果该Bug的产生和环境有关,例如浏览器不兼容导致):
  1. 补充内容:

来自邮箱,等待进一步跟进处理

新功能建议: 分类目录下的分别单独置顶

  1. 您的新功能建议是由使用时出现的不便引发的吗?
    是。

  2. 请描述您所设想的功能或是解决方案
    分类页面下单独置顶,并且可以指定使用status作为置顶内容。
    可以在每一种分类下各设置一个置顶的文章做一个简介帖(如果是status单独置顶就更好了),而且这些置顶的文章不会出现在首页。

  3. 补充内容:
    (来源于博客评论,跟进于GitHub)

这是一个问题

ERROR {
err: TypeError: E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout\layout.ejs:1

1| <%- partial('_partial/head') %>
2| <%- partial('_partial/header') %>
3|


4| <%- body %>

E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout_partial\head.ejs:45
43|
44|

45| <% if (theme.contact.twitter) { %>
46|
47|
48|

Cannot read property 'twitter' of undefined
at eval (E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout_partial\head.ejs:115:26)
at head (E:\LonelyZhou_Bolg\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (E:\LonelyZhou_Bolg\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout\layout.ejs:10:17)
at layout (E:\LonelyZhou_Bolg\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:39:17)
at E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:51:25
at tryCatcher (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:439:21) {
path: 'E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout\layout.ejs'
}
} Render HTML failed: index.html
Unhandled rejection TypeError: E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout\layout.ejs:1

1| <%- partial('_partial/head') %>
2| <%- partial('_partial/header') %>
3|


4| <%- body %>

E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout_partial\head.ejs:45
43|
44|

45| <% if (theme.contact.twitter) { %>
46|
47|
48|

Cannot read property 'twitter' of undefined
at eval (E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout_partial\head.ejs:115:26)
at head (E:\LonelyZhou_Bolg\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (E:\LonelyZhou_Bolg\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (E:\LonelyZhou_Bolg\themes\Kratos-Rebirth\layout\layout.ejs:10:17)
at layout (E:\LonelyZhou_Bolg\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:39:17)
at E:\LonelyZhou_Bolg\node_modules\hexo\lib\theme\view.js:51:25
at tryCatcher (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (E:\LonelyZhou_Bolg\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:439:21)

代码高亮主题怎么改

我对scss内容还不了解,我看到了src/scss/highlight.scss里面有相关的代码,但是修改后没有效果,虽然修改source/css/highlight.min.css里面的代码可以看效果,但是如何去对应,代码高亮主题的五种选择呢?(normal | night | night eighties | night blue | night bright)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.