Git Product home page Git Product logo

hexo-theme-nova's Introduction

Hi there 👋

  • hexo-theme-nova 主题将会迎来一波大的更新,主要为
    • 适配 hexo4, hexo5, hexo6
    • 更新文章阅读数功能,会兼容Valine,计划开发最新评论,最热文章等Widget
    • Donate会使用servless实现,使用nodejs作为代理服务,开放给其他博主使用
    • bootstrap升级到5并且去jquery化,进一步优化加载速度
  • QuickAF
    • 底层网络请求库抽取
    • 网络请求库支持OkHttp
    • 计划全面升级到Kotlin + Jetpack
    • 适配Android 8-13
    • 使用compose重写UI
  • Gradle Dependencies:新开发一款分析Gradle项目的依赖树插件,先上IntelliJ市场
    • 生成完整的依赖树
    • 查看指定构建的依赖,展示依赖树及最终计算的依赖组件
    • 高亮显示强制依赖、主动依赖、约束依赖等依赖类型
    • 支持依赖过滤

hexo-theme-nova's People

Contributors

jamling 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-nova's Issues

code-caption插入不成功

代码高亮里面我的code-caption的div标签插入一直不成功,我想知道这段代码

 var ds = $(this).parent().prev(code_caption_selector).data();
    var texts = $(this).text().split('\n');
    if (ds.trim_indent === 'frontend') {
      console.log("trim indent in front-end");
      var tab = texts[0].match(/^\s{0,}/);
      if (tab) {
        var arr = [];
        texts.forEach(function(temp) {
          arr.push(temp.replace(tab, ''));
        });
        $(this).text(arr.join('\n'));
      }
    }

这个就是插入的代码吗?这个.data()函数会自动插入吗....

生成静态页面失败,有两个文件load不进来

尝试使用LZ的主题,但是很不幸的是,在生成静态代码时便报错了,有两个文件找不到,异常信息如下:

ERROR Script load failed: themes/nova/scripts/helpers.js
Error: Cannot find module '../../../node_modules/hexo/node_modules/lodash'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/hexo/lib/hexo/index.js:216:21)
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/themes/nova/scripts/helpers.js:4:9
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/hexo/lib/hexo/index.js:232:12
    at tryCatcher (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._resolveCallback (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:432:57)
    at Promise._settlePromiseFromHandler (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:524:17)
    at Promise._settlePromise (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:638:18)
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/nodeback.js:42:21
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/graceful-fs/graceful-fs.js:78:16
    at tryToString (fs.js:449:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:436:12)
ERROR Script load failed: themes/nova/scripts/project.js
Error: Cannot find module '../../../node_modules/hexo/node_modules/lodash'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/hexo/lib/hexo/index.js:216:21)
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/themes/nova/scripts/project.js:4:9
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/hexo/lib/hexo/index.js:232:12
    at tryCatcher (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._resolveCallback (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:432:57)
    at Promise._settlePromiseFromHandler (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:524:17)
    at Promise._settlePromise (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/promise.js:638:18)
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/bluebird/js/release/nodeback.js:42:21
    at /Users/senhui.li/CodeSpaces/GithubRepos/hexo-blog/node_modules/graceful-fs/graceful-fs.js:78:16
    at tryToString (fs.js:449:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:436:12)

使用的环境如下:

hexo: 3.3.6
hexo-cli: 1.0.2
os: Darwin 16.5.0 darwin x64
http_parser: 2.7.0
node: 7.10.0
v8: 5.5.372.43
uv: 1.11.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 51
openssl: 1.0.2k
icu: 58.2
unicode: 9.0
cldr: 30.0.3
tz: 2016j

请教一下该如何操作,谢谢。

demo website not loading

demo website is not loading or extremely slow to load.
Where can we get a preview of the theme?

thx

头痛根本就启动不起来

root@hexo:~/hexo# hexo s

/root/hexo/node_modules/hexo-filter-highlight/filter.js:50
label += [${title}](${url});
^
ERROR Plugin load failed: hexo-filter-highlight
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (/root/hexo/node_modules/hexo/lib/hexo/index.js:213:21)
at /root/hexo/node_modules/hexo-filter-highlight/index.js:3:52
at /root/hexo/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at Promise._resolveCallback (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:431:57)
at Promise._settlePromiseFromHandler (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:522:17)
at Promise._settlePromise (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at /root/hexo/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
at /root/hexo/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
ERROR Plugin load failed: hexo-generator-github
AssertionError: urllib-sync need node version 0.11.13+
at Object. (/root/hexo/node_modules/hexo-generator-github/node_modules/urllib-sync/index.js:19:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/hexo/node_modules/hexo-generator-github/lib/helper.js:8:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (/root/hexo/node_modules/hexo/lib/hexo/index.js:213:21)
at /root/hexo/node_modules/hexo-generator-github/index.js:3:10
at /root/hexo/node_modules/hexo/lib/hexo/index.js:229:12
at tryCatcher (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:636:18)
at Promise._resolveCallback (/root/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:431:57)
INFO i18n not config in _config.yml, use default config!
Please visit https://github.com/Jamling/hexo-generator-i18n for more information
INFO Start processing
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop

请教一个关于 hexo 主题的 Travis CI 的问题

我也在开发一个 hexo 主题,然后想用 Travis CI 测试一下代码的 build 状态。
但是不知道为什么一直是 build failing,主题代码也没有什么问题呀。不知道是不是和 .travis.yml 的配置有关?

尝试发了Gmail 邮件,似乎你的邮箱失效了,发送失败。

Unhandled rejection TypeError

Unhandled rejection TypeError: self.url_for_lang is not a function
at link (/usr/app/lotusPond/themes/nova/scripts/list_archives.js:71:17)
at Object. (/usr/app/lotusPond/themes/nova/scripts/list_archives.js:82:74)
at wrapper (/usr/app/lotusPond/node_modules/hexo/node_modules/lodash/lodash.js:4968:19)
at Object.eval [as tpl] (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :7:143)
at compiled (/usr/app/lotusPond/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiledSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:122:20)
at Theme._View.View.View.renderSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:50:21)
at Object.partial (/usr/app/lotusPond/node_modules/hexo/lib/plugins/helper/partial.js:42:17)
at wrapper (/usr/app/lotusPond/node_modules/hexo/node_modules/lodash/lodash.js:4968:19)
at Object.eval [as tpl] (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :15:119)
at compiled (/usr/app/lotusPond/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiled (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:127:30)
at Theme._View.View.View.render (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:29:15)
at /usr/app/lotusPond/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/usr/app/lotusPond/node_modules/bluebird/js/release/util.js:16:23)
at /usr/app/lotusPond/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/usr/app/lotusPond/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:348:10)
at resume
(_stream_readable.js:737:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Unhandled rejection TypeError: this.get_langs is not a function
at Object. (/usr/app/lotusPond/themes/nova/scripts/helpers.js:423:24)
at wrapper (/usr/app/lotusPond/node_modules/hexo/node_modules/lodash/lodash.js:4968:19)
at Object.eval [as tpl] (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :6:123)
at compiled (/usr/app/lotusPond/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiledSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:122:20)
at Theme._View.View.View.renderSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:50:21)
at Object.partial (/usr/app/lotusPond/node_modules/hexo/lib/plugins/helper/partial.js:42:17)
at wrapper (/usr/app/lotusPond/node_modules/hexo/node_modules/lodash/lodash.js:4968:19)
at eval (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :47:119)
at Object.exports.each (/usr/app/lotusPond/node_modules/swig/lib/utils.js:45:11)
at eval (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :14:10)
at Object.eval [as tpl] (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :59:3)
at compiled (/usr/app/lotusPond/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiledSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:122:20)
at Theme._View.View.View.renderSync (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:50:21)
at Object.partial (/usr/app/lotusPond/node_modules/hexo/lib/plugins/helper/partial.js:42:17)
at wrapper (/usr/app/lotusPond/node_modules/hexo/node_modules/lodash/lodash.js:4968:19)
at Object.eval [as tpl] (eval at precompile (/usr/app/lotusPond/node_modules/swig/lib/swig.js:498:13), :11:119)
at compiled (/usr/app/lotusPond/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiled (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:127:30)
at Theme._View.View.View.render (/usr/app/lotusPond/node_modules/hexo/lib/theme/view.js:29:15)
at /usr/app/lotusPond/node_modules/hexo/lib/hexo/index.js:387:25

感觉依赖有问题(Cannot find module)

提示:
Error: Cannot find module '../../../node_modules/hexo/node_modules/lodash'
Error: Cannot find module '../../../node_modules/hexo/node_modules/cheerio'
导致失败
我的hexo是3.x

启动报错 Unhandled rejection TypeError: Cannot read property 'virtual' of undefined,能帮忙看看么

Hexo version: 4.0.0

Unhandled rejection TypeError: Cannot read property 'virtual' of undefined
    at Object.<anonymous> (E:\Workspace\My\blog\themes\nova\scripts\helpers.js:403:15)
    at Object.eval [as tpl] (eval at precompile (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:11:156)
    at compiled (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:664:18)
    at Theme._View.View._compiledSync (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at Object.partial (E:\Workspace\My\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
    at eval (eval at precompile (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:18:119)
    at Object.exports.each (E:\Workspace\My\blog\node_modules\swig-templates\lib\utils.js:45:11)
    at eval (eval at precompile (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:11:10)
    at Object.eval [as tpl] (eval at precompile (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:26:3)
    at compiled (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:664:18)
    at Theme._View.View._compiledSync (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at Object.partial (E:\Workspace\My\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
    at Object.eval [as tpl] (eval at precompile (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:27:119)
    at compiled (E:\Workspace\My\blog\node_modules\swig-templates\lib\swig.js:664:18)
    at Theme._View.View._compiled (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (E:\Workspace\My\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at E:\Workspace\My\blog\node_modules\hexo\lib\hexo\index.js:365:21
    at tryCatcher (E:\Workspace\My\blog\node_modules\bluebird\js\release\util.js:16:23)
    at E:\Workspace\My\blog\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (E:\Workspace\My\blog\node_modules\hexo\lib\hexo\router.js:123:3)

toc not fixed sometimes

我很喜欢你的框架,但是打开具体文章时,右边的目录能否固定出现在右上角,不要随着滚动条消失啊。我试了几次,有时候点一下“语言”(不用进行选择),它就固定在右上角了,但不是每次都有效。
请教一下这个是可以设置的还是需要特殊处理?

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.