geekaholiclin / hexo-theme-ylion Goto Github PK
View Code? Open in Web Editor NEW:blush: 说不定是一个让你感到惊喜的hexo主题 :beers: :candy:
Home Page: http://blog.geekaholic.cn
License: MIT License
:blush: 说不定是一个让你感到惊喜的hexo主题 :beers: :candy:
Home Page: http://blog.geekaholic.cn
License: MIT License
打算引入Webpack等。
待考虑,最大的问题是开发和发布的分开,开发后需要生成另外一套?还是push到不同分支?如果相同分支会不会使得用户pull无用代码?
剛貼上去是0,自己看了一次是1,但是後來別人看了也不會增加。
排行榜上一個人數到2的,那是我自己從後台修改結果。
後台看都有會有對應紀錄,只是人數到1就不在增加。
经常收到这邮件
付费方案,30/天起
有没有替代品?
Is that possible to have a English Readme please?
@changchichung 我这边正常,如果你的依然不可以,可以先在开启并部署到Github Pages,我看看能不能找出是什么问题。
代码样式问题比较重要,比如diff或patch的高亮,或者特定标记的代码行。
产生的类似:undefinedtags/操作系统/
这样的链接,正确的应该是:tags/操作系统/
你好
我的gitment配置如下:
gitment:
enable: true
owner: tidyjiang8
repo: tidyjiang8.github.io
client_id: 87e70869759a2eb97020
client_secret: d2c9da2115c778a45072b1b485763d7a5a5851ce
labels: "blog,gitment"
perPage: 20
maxCommentHeight:
创建应用时的参数如下:
Client ID
87e70869759a2eb97020
Client Secret
d2c9da2115c778a45072b1b485763d7a5a5851ce
Homepage URL
https://tidyjiang8.github.io/
Authorization callback URL
https://tidyjiang8.github.io/
但是在评论框中,Login授权后,无法初始化。评论框地址是:
不知道哪里出了问题,需求帮助~~
初步设想是想通过pandoc
将html文件转换为markdown,然后在markdown中按照一定的格式直接翻译,在hexo g
命令运行的时候,将英文作为对应中文的title attr
显示,具体效果参考vuejs双语对照网站。
目前的难点在于:
`
$ hexo g
ERROR Script load failed: themes\hexo-theme-ylion\scripts\generator\index.js
TypeError: Cannot set property 'cdata' of undefined
at Object. (F:\Githexo\themes\hexo-theme-ylion\scripts\generator\lib\generator.js:5:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (F:\Githexo\node_modules\hexo\lib\hexo\index.js:216:21)
at F:\Githexo\themes\hexo-theme-ylion\scripts\generator\index.js:19:42
at F:\Githexo\node_modules\hexo\lib\hexo\index.js:232:12
at tryCatcher (F:\Githexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\Githexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (F:\Githexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (F:\Githexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (F:\Githexo\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (F:\Githexo\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (F:\Githexo\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (F:\Githexo\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (F:\Githexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (F:\Githexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (F:\Githexo\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (F:\Githexo\node_modules\bluebird\js\release\promise.js:638:18)
at F:\Githexo\node_modules\bluebird\js\release\nodeback.js:42:21
at F:\Githexo\node_modules\graceful-fs\graceful-fs.js:78:16
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)
ERROR Script load failed: themes\hexo-theme-ylion\scripts\generator\lib\generator.js
TypeError: Cannot set property 'cdata' of undefined
at F:\Githexo\themes\hexo-theme-ylion\scripts\generator\lib\generator.js:5:19
at F:\Githexo\node_modules\hexo\lib\hexo\index.js:232:12
at tryCatcher (F:\Githexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\Githexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (F:\Githexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (F:\Githexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (F:\Githexo\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (F:\Githexo\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (F:\Githexo\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (F:\Githexo\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (F:\Githexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (F:\Githexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (F:\Githexo\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (F:\Githexo\node_modules\bluebird\js\release\promise.js:638:18)
at F:\Githexo\node_modules\bluebird\js\release\nodeback.js:42:21
at F:\Githexo\node_modules\graceful-fs\graceful-fs.js:78:16
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)
INFO Start processing
INFO Files loaded in 197 ms
INFO Generated: 2017/05/11/hello-world/index.html
INFO Generated: archives/index.html
INFO Generated: archives/2017/05/index.html
INFO Generated: archives/2017/index.html
INFO Generated: index.html
INFO 5 files generated in 169 ms
`
博主看一下是什么原因导致的主题更换不成功。
我新建了两篇博客,hexo s 之后在本地预览,打开发现右侧滚动条自动滚动到最下面,然而不是必现的,偶尔会出现,放到github上之后也存在同样的问题,目测是个bug吧?
@mosdeo 请移步到这里。我们就不要在人家的repo下打扰其他人 😄
ylion主题已经是集成了window.location.pathname
,无需另外配置,我看你的配置是正确。
不知你是如何操作的。
那个作品的界面怎么配
比如連結字串是這樣
那 render 出來 html 的連結就是這樣
删除文章后,热门文章处还会显示已删除的文件
修复 #7 的过程中发现,之前考虑方便阅读代码的"强制换行"的样式,会导致折行的代码所对应行号不能正常显示,待修复。
如果該文章沒有圖,就要看著圈圈一直轉,好討厭!
可以設定內文無圖時的預設圖片嗎?
自己用習慣 github 寫 markdown 以後,覺得對 Pandoc 一般的 render 行為很不適應,所以想替換掉 render 參數,請問要怎麼用呢?
我的設置是這樣
## comments -- 评论框
### disqus
disqus_shortname: mosdeo-github-io
### duoshuo
duoshuo_shortname:
### gitment
gitment:
hexo g 每一篇文章都會出現如下錯誤
ERROR /home/LKY/mosdeo_github_io/themes/ylion/layout/layout.ejs:1
>> 1| <%- partial('_partial/head') %>
2| <body id="<%= "404 Not Found" === (page.title && page.title.trim()) ? 'error-page' : 'normal'%>">
3| <%- partial('_partial/_head-sections/IE',null,{cache: !config.relative_link}) %>
4| <div id="wrap">
/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/head.ejs:17
15| <%- partial('_head-sections/title') %>
16| <%- partial('_head-sections/style') %>
>> 17| <%- partial('_head-sections/script') %>
18| <%- partial('_thirdParty/baidu_an') %>
19| <%- partial('_thirdParty/google_analytics') %>
20| </head>
/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/_head-sections/script.ejs:24
22| <!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->
23|
>> 24| <% if(theme.gitment.enable && is_post()){ %>
25| <%- js("/js/thirdParty/gitment.browser.min.js") %>
26| <script>
27| var labels = "<%= theme.gitment.labels %>";
Cannot read property 'enable' of null
### highlight{@highlightStyle:[github,solarized-light]}
### 内置两款代码主题
#highlightStyle: github
我想使用 highlight 的 monokai-sublime
我把 ↓ ↓ ↓ 这些代码 放入了layout.ejs 文件中 但是没反应 那里错了
<link rel="stylesheet"
href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/monokai-sublime.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
<script >hljs.initHighlightingOnLoad();</script>
---
title: (译)What do the following phrases mean in C++:zero-, default- and value-initialization?(03 98)
date: 2017-08-02 17:57:16
tags: translation
thumbnail: http://i.stack.imgur.com/oURrw.png
categories: c/c++
bgimage: http://i.stack.imgur.com/oURrw.png
---
这是一个示例, 我希望能在每篇文章的左边有能加载出thumbnail
/bgimage
里面的图片, 但是打开我的博客基本都处于加载状态, 请问如何解决
我在手机上查看文章会有与阅读数,但是只能从0变到1,换设备查看同一篇文章阅读数不变。pc端阅读量不显示,一直是那个旋转的圈圈。我想请问一下我是什么地方设置错误吗
请问有没有计划支持valine,如果没有计划,我就打算自己搞了
不知道是不是我用 2k 螢幕(surface pro 3)的關係,我會覺得字體太小,閱讀體驗不佳。
可以在哪個設定裡把字體改大嗎? #
比如是19点45分发表的,实际显示的是07点45
目前縮圖是從文章裡隨機挑選,但是有些文章我會想要指定縮圖,讓讀者在預覽階段就比較有"感覺"。這是我很想要的功能,請問目前有辦法做到嗎?
GET http://localhost:4000/css/pages/article-exp.css
localhost/:33 GET http://localhost:4000/css/base.css
app.js:358 Uncaught ReferenceError: AV is not defined
at app.js:358
at app.js:373
at window.onload (app.js:376)
When I use your theme, I got these errors, so many large words and no format, can you help me solve this issue? Thanks.
一直都只有在轉圈圈,不會顯示文章標題耶?
原本都正常。
我剛剛重新拉 repo 以後,就看不到文章縮圖了,全部變成預設圖片。
但新舊 repo 最後一個 commit 都相同,應該是我原本的手動修改被蓋掉了。
這是我的 _config.yml,看不出哪裡有問題?
https://gist.github.com/mosdeo/eca0c2fc5587ee6d67649ae6d560b559.js
leancloud:
enable: true
className: "BlogCounter"
app_id: a0vxRDRolcllDSWWbstYjMet-gzGzoHsz
app_key: lqFfEzLnBmeOgS1XoRjA9XoY
region:
limits: 10
使用後,leancloud.cn 後台有出現 BlogCounter 的 API 請求數增加,但是數據為空。
http://localhost:4000/ 可以正常運作,leancloud.cn 後台可以看到紀錄,但發佈到 github 上面就不行。
博主把文档格式也上传一份吧,方便应用。谢谢!
比如首页标题处的预览图片链接如何添加标签问题等。
<div class="article-img img-ajax" data-src= http://7xobsp.com1.z0.glb.clouddn.com/346.jpg>
或者可以把却省的图片缩略图为一个固定链接(有实际地址),这样就避免了没有指定链接时,图片位置一直加载问题。
如影片所示
第一次我用鍵盤的倒退鍵 backspace 回上一頁,頁面會變成灰色,似乎被蓋上一層layer
但是第二次我用瀏覽器的回上頁按鍵,就不會有這樣的問題
hexo g 每一篇文章會出現如下錯誤
ERROR /home/LKY/mosdeo_github_io/themes/ylion/layout/layout.ejs:7
5| <%- partial('_partial/header') %>
6| <div id="container">
>> 7| <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
8| <%- body %>
9| </div>
10| <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/sidebar.ejs:4
2| <ul id="sidebar">
3| <% theme.widgets.forEach(function(widget){ %>
>> 4| <%- partial('_widget/' + widget) %>
5| <% }) %>
6| </ul>
7|
/home/LKY/mosdeo_github_io/themes/ylion/layout/_widget/tagcloud.ejs:6
4| <div class="tagcloud-content">
5| <% var tagcloud_config = theme.tagcloud_config;%>
>> 6| <%-tagcloud({
7| min_font: tagcloud_config.min_font,
8| max_font: tagcloud_config.max_font,
9| unit: tagcloud_config.unit,
color is required!
TypeError: /home/LKY/mosdeo_github_io/themes/ylion/layout/layout.ejs:7
5| <%- partial('_partial/header') %>
6| <div id="container">
>> 7| <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
8| <%- body %>
9| </div>
10| <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
/home/LKY/mosdeo_github_io/themes/ylion/layout/_partial/sidebar.ejs:4
2| <ul id="sidebar">
3| <% theme.widgets.forEach(function(widget){ %>
>> 4| <%- partial('_widget/' + widget) %>
5| <% }) %>
6| </ul>
7|
/home/LKY/mosdeo_github_io/themes/ylion/layout/_widget/tagcloud.ejs:6
4| <div class="tagcloud-content">
5| <% var tagcloud_config = theme.tagcloud_config;%>
>> 6| <%-tagcloud({
7| min_font: tagcloud_config.min_font,
8| max_font: tagcloud_config.max_font,
9| unit: tagcloud_config.unit,
color is required!
at new Color (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/tagcloud.js:241:11)
at Object.tagcloudHelper (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/tagcloud.js:182:18)
at Object.wrapper [as tagcloud] (/home/LKY/mosdeo_github_io/node_modules/lodash/lodash.js:4941:19)
at eval (eval at compile (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:18:16)
at returnedFn (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:615:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/theme/view.js:120:22)
at Theme._View.View.View.renderSync (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/theme/view.js:48:23)
at Object.partial (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/partial.js:39:15)
at Object.wrapper [as partial] (/home/LKY/mosdeo_github_io/node_modules/lodash/lodash.js:4941:19)
at eval (eval at compile (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:15:17)
at Array.forEach (<anonymous>)
at eval (eval at compile (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:12:22)
at returnedFn (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:615:17)
at Theme._View.View._compiledSync.locals [as _compiledSync] (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/theme/view.js:120:22)
at Theme._View.View.View.renderSync (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/theme/view.js:48:23)
at fragment_cache (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/partial.js:36:52)
at Object.fragmentCache (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/fragment_cache.js:9:32)
at Object.wrapper [as fragment_cache] (/home/LKY/mosdeo_github_io/node_modules/lodash/lodash.js:4941:19)
at Object.partial (/home/LKY/mosdeo_github_io/node_modules/hexo/lib/plugins/helper/partial.js:36:17)
at Object.wrapper [as partial] (/home/LKY/mosdeo_github_io/node_modules/lodash/lodash.js:4941:19)
at eval (eval at compile (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:21:17)
at returnedFn (/home/LKY/mosdeo_github_io/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:615:17)
看起來應該是 _config.yml 裡面的 tagcloud_config 區塊有錯,不過這邊我都沒動過,都照你原版的。也做過 YAML check 通過。所以想不到還有哪裡可能出錯?
因為我是從原本的WP搬到 Hexo來,現在搜尋引擎上的收錄結果都還是原本舊的連結
所以我想要放一個404 error page 導引user到首頁去作搜尋
我下了 hexo new page 404
然後修改 source/404/index.md
title: 404 Not Found:頁面無法顯示
toc: false
comments: false
permalink: /404網頁內文...
現在開啟錯誤的網址時,是會導到 http://mydomain.com/404沒錯,但是內容是空白的,顯示不出我設定的內文,像底下這張圖這樣
我翻了一下config.yml,好像沒有看到有特別針對 404作處理?請教我應該在這個主題底下去自訂404 page?
多说关闭了,请问评论不支持畅言、友言吗?
markdown 中使用 [TOC] 生成目录后,为啥在博客上不显示对应的目录呢?
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.