Giter Club home page Giter Club logo

hexo-theme-one's Introduction

hexo-theme-one

Author QQ Email

文档

使用 React 制作的 material design 风格的 hexo 主题。

本项目并不适合用来学习react,其中包含程序设计问题和反模式是本人学习用作品。

DEMO: https://huaji8.top/

如果喜欢的话 请点个star 让我看到你们的支持

流畅 简约 优雅 易用

开发中功能表:

名称 进展 详情
移动版首页 已完成
中文搜索 开发中 需要后端生成关键字 或 改为正则匹配
404 Page 尚未开始
Drawer 已完成
i18n 暂时搁置 已使用react intl
自动化测试 暂时搁置 大量内容需跟进
文章分类 已完成
标签分类 已完成
多说评论 已完成
Disqus 已完成
分享 有替代方案
全局颜色 开发中 部分组件需补全
载入加载动画 尚未开始 需设计
时间搜索 尚未开始
page系统 已完成
google translate 勉强能用 格式会乱 issua: #7
页脚 已完成

该主页深受 hexo-theme-materialhexo-theme-indigo 的影响,感谢这2个主题的开发者们

hexo-theme-one's People

Contributors

eyhn avatar pengchongfu avatar reecho-tsai 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-one's Issues

关于 build 的疑问

你好,我 fork 项目之后 npm install 安装好了依赖。

但是执行 npm run build 的时候会出现这样的错误

Child html-webpack-plugin for "index.html":
    
Could't analyze webpack bundle:
TypeError: Cannot read property 'raw' of undefined
Could't find any javascript bundles in provided stats file
[21:20:57] Finished 'webpack' after 55 s
[21:20:57] Starting 'build'...
[21:20:57] Finished 'build' after 48 μs

然后将 dist 目录的文件覆盖 source 内的文件 console 会报错。请问你有没有这个问题。(会不是是坑爹的 node 版本问题)

或者说正确的构建流程该如何进行?

我想添加个分类,在这里像首页一样发布文章,一篇一篇的那种

分类为 项目,放一些我做的项目的图片和链接,以文章的形式一篇一篇发布,怎么弄。我现在仿照作者的主题配置文件的左边栏,也就是目录那些的格式,加了个项目分类,但是只能像关于我一样跳到page/项目这个路径。是type类型的问题吗,不太懂,type我填的page,填post没反应,填sitelink也没变化,还有href是什么链接也没搞明白,打了个/project/,自己建了个这个文件,想让他跳转到我建的这个里,然后我再里面加文章,但是不行

appbar左侧图标工作逻辑(back和menu)

如果不在主页显示back图标
否则显示menu图标
点击back时判断:如果上一个页面在站内则返回上一个页面,如果上一个页面不是站内则返回主页。

以上将在1.1.0中更新 #17

求助运行 hexo server时报错

INFO Start processing
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
Unhandled rejection ReferenceError: D:\hexo\themes\hexo-theme-one-master\layout\index.ejs:22
20| window.one = <%- JSON.stringify({site:config,theme:theme}) %>
21| </script>

22| <%- jsLsload("vendor") %>
23| <%- jsLsload("bundle") %>
24|
25|

jsLsload is not defined
at eval (eval at compile (D:\hexo\node_modules\ejs\lib\ejs.js:618:12), :32:7)
at returnedFn (D:\hexo\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\hexo\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\hexo\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\hexo\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\hexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:442:10)
at resume
(_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

翻译功能问题

当前为html翻译
会出现格式错乱问题
需要一个程序 提取出 元素中内容 翻译后再注入

“关于我”页面的疑问

作者大大,辛苦了!
主题真是色气满满
遇到个问题,关于侧边栏里的“关于我”选项,配置选项没找到。

中文問題

不知道為什麼我的中文會變成亂碼
有時候有中文的md檔 還會消失 換成英文才出現

_config language 用 zh-tw 也一樣
請問要如何解決?

hexo g报错

我执行hexo g时显示
ERROR Script load failed: themes/hexo/scripts/index.js
Error: Cannot find module 'lodash.pick'
请问是什么回事,用官方的主题没问题

Warning occurred while generating and running local server and got blank page in Chromium

INFO  Start processing
INFO  Files loaded in 283 ms
WARN  No layout: index.html
....

Got output like this whilst generating or testing the server.
I tried to redownload directly from the release, cloned the repo and copied the hexo folder, but nothing was changed. I had renamed the _config.yml.

Could it because of too many dependencies already installed? I was using typescript and some other styles before and wanted to switch to your design. Therefore there are quite a lot of dependencies in this directory.

Thank you very much!

mac下报错

Unhandled rejection ReferenceError: /Users/yaochengzhi/hexo/themes/one/layout/index.ejs:22
20| window.one = <%- JSON.stringify({site:config,theme:theme}) %>
21| </script>

22| <%- jsLsload("vendor") %>
23| <%- jsLsload("bundle") %>
24|
25|

jsLsload is not defined
at eval (eval at (/Users/yaochengzhi/hexo/node_modules/ejs/lib/ejs.js:242:14), :32:5227)
at eval (eval at (/Users/yaochengzhi/hexo/node_modules/ejs/lib/ejs.js:242:14), :32:5325)
at /Users/yaochengzhi/hexo/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/Users/yaochengzhi/hexo/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/Users/yaochengzhi/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/yaochengzhi/hexo/node_modules/hexo/lib/hexo/index.js:390:25
at tryCatcher (/Users/yaochengzhi/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /Users/yaochengzhi/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/yaochengzhi/hexo/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:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

toc 换行的问题

现在的 toc 一旦标题稍微长一点,就会换行。

话说你的看法是什么,该换行还是不换行显示省略号? @EYHN

(或者不要写那么长的标题。。

颜色失效

颜色失效
defaultPrimaryColor: "gray"
defaultAccentColor: "red"

hexo d -g 出错

yml已经改名
npm i lodash.pick --save也安装了

hexo生成的时候

ERROR D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\themes\hexo-theme-one\layout\index.ejs:22
20| window.one = <%- JSON.stringify({site:config,theme:theme}) %>
21| </script>

22| <%- jsLsload("vendor") %>
23| <%- jsLsload("bundle") %>
24|
25|

...(省略n个和上头一样的)
jsLsload is not defined
at eval (eval at compile (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\ejs\lib\ejs.js:618:12), :32:7)
at returnedFn (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\ejs\lib\ejs.js:653:17)
at Theme._View.View._compiled.locals [as _compiled] (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\hexo\lib\theme\view.js:30:15)
at route.set (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\hexo\lib\hexo\index.js:394:29)
at tryCatcher (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\bluebird\js\release\util.js:16:23)
at D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\OneDrive - hk sar baomin inc\Code\hexo\scripts\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:449:10)
at resume
(_stream_readable.js:888:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

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.