auroral-ui / hexo-theme-aurora Goto Github PK
View Code? Open in Web Editor NEW🏳️🌈 Futuristic auroral Hexo theme.
Home Page: https://blog.bennyxguo.com
License: MIT License
🏳️🌈 Futuristic auroral Hexo theme.
Home Page: https://blog.bennyxguo.com
License: MIT License
Problem:
The scrolling right now is using the browser default API window.scrollTo
which have performance and scrolling smoothness issue when scrolling a large distance.
Solution:
Switching to a custom scroll animation script.
log:
ERROR ERROR {
err: TypeError: Cannot read property 'cdn' of undefined
at module.exports (/home/kcn3388/hexo/themes/aurora/scripts/lib/injector/index.js:16:29)
at /home/kcn3388/hexo/themes/aurora/scripts/index.js:4:26
at /home/kcn3388/hexo/node_modules/hexo/lib/hexo/index.js:305:14
at tryCatcher (/home/kcn3388/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
} Script load failed: %s themes/aurora/scripts/index.js
{
err: TypeError: Cannot read property 'cdn' of undefined
at module.exports (/home/kcn3388/hexo/themes/aurora/scripts/lib/injector/index.js:16:29)
at /home/kcn3388/hexo/themes/aurora/scripts/index.js:4:26
at /home/kcn3388/hexo/node_modules/hexo/lib/hexo/index.js:305:14
at tryCatcher (/home/kcn3388/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
} Script load failed: %s themes/aurora/scripts/index.js
INFO Start processing
FATAL {
err: TypeError: Cannot read property 'KMurasaki' of null
at authorMapper (/home/kcn3388/hexo/themes/aurora/scripts/lib/helpers/mapper.js:41:50)
at postMapper (/home/kcn3388/hexo/themes/aurora/scripts/lib/helpers/mapper.js:33:13)
at /home/kcn3388/hexo/themes/aurora/scripts/lib/generators/post.js:33:21
at _Query.forEach (/home/kcn3388/hexo/node_modules/warehouse/lib/query.js:36:7)
at PostGenerator.transform (/home/kcn3388/hexo/themes/aurora/scripts/lib/generators/post.js:32:15)
at new PostGenerator (/home/kcn3388/hexo/themes/aurora/scripts/lib/generators/post.js:13:10)
at generator (/home/kcn3388/hexo/themes/aurora/scripts/lib/generators/index.js:91:19)
at Hexo. (/home/kcn3388/hexo/themes/aurora/scripts/lib/generators/index.js:79:12)
at Hexo.tryCatcher (/home/kcn3388/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Hexo. (/home/kcn3388/hexo/node_modules/bluebird/js/release/method.js:15:34)
at /home/kcn3388/hexo/node_modules/hexo/lib/hexo/index.js:405:22
at tryCatcher (/home/kcn3388/hexo/node_modules/bluebird/js/release/util.js:16:23)
at MappingPromiseArray._promiseFulfilled (/home/kcn3388/hexo/node_modules/bluebird/js/release/map.js:68:38)
at MappingPromiseArray.PromiseArray._iterate (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise_array.js:115:31)
at MappingPromiseArray.init (/home/kcn3388/hexo/node_modules/bluebird/js/release/promise_array.js:79:10)
at MappingPromiseArray._asyncInit (/home/kcn3388/hexo/node_modules/bluebird/js/release/map.js:37:10)
at _drainQueueStep (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/kcn3388/hexo/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
kmurasaki是我文章设置的第三方作者名,代码为:
author: Kmurasaki
Thinking of using an image api, randomly fetch an image for cover page.
Note: https://www.qian.blue/archives/SanQianZhiTu-random_img.html
Components:
Utilities:
Texts in the code fence will overflow outside of the article content box when viewing in mobile with safari. Seem to only happen if it's English text characters.
Methods:
Adding the use of Algolia for search.
你好,获取最新版的主题后我使用prismjs来高亮代码提示错误,错误为:[Aurora Config Error]: Please set Hexo config's prismjs' [preprocess] property to false!
这是我刚部署的github page地址:https://xiaoyu668.github.io/
请问npm install 的时候总是报那个包的错误 好像版本不适配的问题 该怎么解决呢
The condition for 1 minute cache is invalid.
Problems
The preload preloads the default gradient color instead of user-set gradient colors before switching to the user-set gradient color.
Some avatar dosn't suit with the diamond shape.
Unecessary CNAME in the default static. Will be remove in the next version.
Beian in China required to have a link to the beian system. Therefore need to have two separate configuration properties, link
and number
.
excerpt
is used originally in Hexo generator for outputting shorten description of an article. However for Aurora, it has a custom HTMLTruncate logic comes with it. Therefore we don't need this field anymore.
Problem
When ecerpt of the article is generated, due to the old logic, content is putting as empty. Causing article output with empty content.
Solution
Removing the excerpt
field in the Aurora API data generation process.
The Aurora generation script generates pages with the content as JSON, not html.
I have notice that since Hexo 5, theme config can be place at the blog root directory, while having to change the default _config.yml file.
This way makes it much easier for theme users. Need to update the documentation for this.
Problem
Setting the dark_mode
to true, will did not turn the application into dark mode by default.
Solution
Should read the dark_mode configuration when initializing the application. But skip the dark_mode configuration if the user had changed the mode by choice.
The first time loading the site takes over 10 seconds.
Default pages like
They should be generated outside of the page/
folder. Since in the default router path, they are visited direction without the page sub folder (eg: https://domain.com/about)
Menu settings's name attribute is required at all time, but if an i18n attribute is set for a menu, the name's value will be ignored, but it will always be used. Since it's used to generate the menu itself during render.
Problem:
Default browser scrollbar styles will break the theme on Window systems.
Solution:
Need to replace all scrollbar with custom styles.
Problem
The locale setting did not take effect when set. After investigation, this is caused by the router guard logic, where it change the locale basic on checking the router params.
Solution
Changed the logic to use the stored locale in appStore, and set it to the stored locale in the beforeEach callback.
This is due to the string replace of 'k', should find post that is over 1000 words, and remove the 'k' and times by 1000, then add to the total word count.
After updating to Aurora 1.4, the search button doesn't work anymore.
Hi bro,
I have tried to install this new theme, the steps have been followed but I got this message
INFO Thanks for using Aurora v1.1.2
INFO Check out the repo at: https://github.com/auroral-ui/hexo-theme-aurora
INFO Validating config
INFO Start processing
FATAL {
err: TypeError: Cannot read property 'Nguyên Lưu (Alfred - Yuan)' of null
at authorMapper (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\helpers\mapper.js:41:50)
at postMapper (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\helpers\mapper.js:33:13)
at C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\generators\post.js:33:21
at _Query.forEach (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\warehouse\lib\query.js:36:7)
at PostGenerator.transform (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\generators\post.js:32:15)
at new PostGenerator (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\generators\post.js:13:10)
at generator (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\generators\index.js:91:19)
at Hexo.<anonymous> (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\hexo-theme-aurora\scripts\lib\generators\index.js:79:12)
at Hexo.tryCatcher (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (C:\Users\Heisenberg\Documents\blog_zhenyuan0502\blog\node_modules\bluebird\js\release\method.js:15:34)
The issue is, when _config.auroa not existed any author, the error will be thrown
#! ---------------------------------------------------------------
#! Authors Configs
#! @docs https://obsidianext.tridiamond.tech/guide/authors.html
#! ---------------------------------------------------------------
authors:
In my sense, I believe that it should be optional, as no authors defined, blog author would be caught up
这个主题不支持table 表格吗?
Gitalk has a config called proxy
, this is mainly used to solve cors
problem. By default it uses https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token
, but for the bloggers in China, this domain is blocked. So the proxy setting should be able to configured in the _config.yml.
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.