henryhuang / hexo-theme-aloha Goto Github PK
View Code? Open in Web Editor NEWA hexo theme, use semantic ui.
Home Page: https://henryhuang.github.io/hexo-theme-aloha/
License: MIT License
A hexo theme, use semantic ui.
Home Page: https://henryhuang.github.io/hexo-theme-aloha/
License: MIT License
你好,看到你自己使用的里面是用的多说评论,请问如何添加disqus的评论框呢?我在站点的配置文件 _config.yml 里写了disqus_shortname的变量但是生成的网页里并没有出现。是theme的配置文件里也需另外添加什么吗?
谢谢
要是文章有目录就不错了
在无需列表渲染时候出错
页面打开速度被这个引用严重拖慢了,
显示Status Code:502 Bad Gateway,
搜索了一下,发现这是360的公共库,已经停止服务了,
可以替换成谷歌的公共库,找不到设置的地方在哪里
我更改了您的样式后,之前写的文章怎么找不到了。显示不出来了。。。。。。
我安装好aloha主题后,执行hexo g
命令,出现下面错误
INFO [hexo-inject] installing hotfix for hexojs/hexo#1791
INFO [hexo-math] Using engine 'mathjax'
INFO Start processing
INFO Files loaded in 302 ms
Unhandled rejection Error: H:\hexo\themes\aloha\layout\post.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
H:\hexo\themes\aloha\layout\_partial\article.ejs:61
59| <div class="ui sticky article-toc" id="article-toc">
60| <!-- toc -->
>> 61| <%- toc_semantic(page.content) %>
62| </div>
63|
64| </div>
Cannot find module 'cheerio'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.tocHelper (H:\hexo\themes\aloha\scripts\helper\toc.js:7:29)
at Object.wrapper [as toc_semantic] (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:46:2162)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:54:52)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiledSync (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:31:22)
at View.renderSync (H:\hexo\node_modules\hexo\lib\theme\view.js:50:21)
at Object.partial (H:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:42:17)
at Object.wrapper (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:35)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:101)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiled (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:38:43)
at View.render (H:\hexo\node_modules\hexo\lib\theme\view.js:29:15)
at H:\hexo\node_modules\hexo\lib\hexo\index.js:387:25
at tryCatcher (H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (H:\hexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:328:10)
at resume_ (_stream_readable.js:718:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
Unhandled rejection Error: H:\hexo\themes\aloha\layout\post.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
H:\hexo\themes\aloha\layout\_partial\article.ejs:61
59| <div class="ui sticky article-toc" id="article-toc">
60| <!-- toc -->
>> 61| <%- toc_semantic(page.content) %>
62| </div>
63|
64| </div>
Cannot find module 'cheerio'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.tocHelper (H:\hexo\themes\aloha\scripts\helper\toc.js:7:29)
at Object.wrapper [as toc_semantic] (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:46:2162)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:54:52)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiledSync (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:31:22)
at View.renderSync (H:\hexo\node_modules\hexo\lib\theme\view.js:50:21)
at Object.partial (H:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:42:17)
at Object.wrapper (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:35)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:101)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiled (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:38:43)
at View.render (H:\hexo\node_modules\hexo\lib\theme\view.js:29:15)
at H:\hexo\node_modules\hexo\lib\hexo\index.js:387:25
at tryCatcher (H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (H:\hexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:328:10)
at resume_ (_stream_readable.js:718:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
Unhandled rejection Error: H:\hexo\themes\aloha\layout\post.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
H:\hexo\themes\aloha\layout\_partial\article.ejs:61
59| <div class="ui sticky article-toc" id="article-toc">
60| <!-- toc -->
>> 61| <%- toc_semantic(page.content) %>
62| </div>
63|
64| </div>
Cannot find module 'cheerio'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.tocHelper (H:\hexo\themes\aloha\scripts\helper\toc.js:7:29)
at Object.wrapper [as toc_semantic] (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:46:2162)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:54:52)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiledSync (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:31:22)
at View.renderSync (H:\hexo\node_modules\hexo\lib\theme\view.js:50:21)
at Object.partial (H:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:42:17)
at Object.wrapper (H:\hexo\node_modules\hexo\node_modules\lodash\lodash.js:4968:19)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:35)
at eval (eval at <anonymous> (H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:101)
at H:\hexo\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:255:15
at _compiled (H:\hexo\node_modules\hexo-inject\lib\patch\view.js:38:43)
at View.render (H:\hexo\node_modules\hexo\lib\theme\view.js:29:15)
at H:\hexo\node_modules\hexo\lib\hexo\index.js:387:25
at tryCatcher (H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at H:\hexo\node_modules\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (H:\hexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:328:10)
at resume_ (_stream_readable.js:718:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
INFO Generated: css/aloha.less
INFO Generated: images/algolia_logo.svg
INFO Generated: images/scrolltop.png
INFO Generated: css/semantic-ui/2.2.4/themes/default/assets/fonts/icons.eot
INFO Generated: css/semantic-ui/2.2.4/themes/default/assets/fonts/icons.woff2
INFO Generated: favicon.ico
INFO Generated: css/semantic-ui/2.2.4/themes/default/assets/fonts/icons.ttf
INFO Generated: css/semantic-ui/2.2.4/themes/default/assets/fonts/icons.woff
INFO Generated: css/aloha.css
INFO Generated: js/aloha.js
INFO Generated: js/aloha-events.js
INFO Generated: js/semantic-ui-algolia.js
INFO Generated: css/semantic-ui/2.2.4/semantic.min.css
INFO Generated: archives/index.html
INFO Generated: archives/2017/03/index.html
INFO Generated: archives/2017/index.html
INFO Generated: index.html
INFO Generated: images/avatar.jpg
INFO Generated: css/semantic-ui/2.2.4/themes/default/assets/fonts/icons.svg
前面我用的是默认的landscape
主题,并且已经写过在_post文件夹下有几个md
文件。这种错误的原因是什么?
hi,喜欢你的这个主题风格,很简约,所以使用了,但是现在有两个问题请教一下:
1、我没办法修改头像,把图片放入对应的位置,然后修改config文件并不成功。
2、如何让主题能够加上代码高亮的功能呢?修改highlight没用
Hi. How do I add categories or tags? On the right side or top of your theme.
老大你这个主题很棒啊,现在有两个问题:
第一个是目录的显示问题:
http://162.219.122.114:880/11.png
第二个是我的代码显示怎么和你演示的不一样啊,你的是这样的:
http://162.219.122.114:880/22.png
我的是这样的:
http://162.219.122.114:880/1122.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.