chaooo / hexo-theme-bluelake Goto Github PK
View Code? Open in Web Editor NEWA simple theme for Hexo with great performance on different devices .
License: MIT License
A simple theme for Hexo with great performance on different devices .
License: MIT License
作者, 你好,挺喜欢这个主题的。
但是按照文档操作运行后,出错:WARN No layout: index.html
请问怎么解决?
Mixed Content: The page at 'https://www.zxcjkl.com/' was loaded over HTTPS, but requested an insecure font 'http://fontstatic.useso.com/s/sourcecodepro/v6/mrl8jkM18OlOQN8JLgasD9Hq-FFgoDNV3GTKpHwuvtI.woff'. This request has been blocked; the content must be served over HTTPS.
https://github.com/chaooo/hexo-theme-BlueLake/search?utf8=%E2%9C%93&q=useso
替换为公益库,详参:https://ttt.tt/185/
cd /your-blog/
vim theme/BlueLake/layout/base.jade
link(rel="stylesheet", type="text/css", href="//fonts.useso.com/css?family=Source+Code+Pro")
更改
link(rel="stylesheet", type="text/css", href="//fonts.css.network/css?family=Source+Code+Pro")
网页上显示是这样的,例如:
经典的软件设计原则:
1、保持简单,愚蠢(KISS)
2、不要重复自己(DRY)
然后是Red Hat的云原生容器设计原则:
楼主可能把代码写反了,序号的文字应该跟上一段靠拢,而不是跟下一段靠拢。
the error stack trace like this:
<a id="main-nav-toggle" class="nav-icon"></a>
<% for (var i in theme.menu){ %>
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
</nav>
<nav id="sub-nav">
path.substring is not a function
my env :
hexo: 3.2.2
hexo-cli: 1.0.2
os: Darwin 16.1.0 darwin x64
http_parser: 2.7.0
node: 6.9.1
v8: 5.1.281.84
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2j
网易云跟贴集成不成功
自己生成了Aboubt页面,但其中的photo链接过去后显示水平方向上被压缩了。我的图片是2100*627,jpg格的
markdown 代码
1. aaaaaaaaaa
2. bbbbbbbbb
生成的html代码
<ol>
<li><p>aaaaaaaaaa</p></li>
<li><p> bbbbbbbbb</p></li>
</ol>
显示的效果就是ie下正常,火狐和chrom下显示的数字和文字被分成两行显示
v1.1.0新添加了列表样式与blockquote样式,换了一个通用一点的网站ico图标。
配置是正确的,但是没有出现‘分类’模块
##########################
## Site Config Settings ##
##########################
# Theme version
version: 2.0.0
# Header
menu:
- page: home
directory: .
icon: fa-home
- page: archive
directory: archives/
icon: fa-archive
- page: about
directory: about/
icon: fa-user
- page: rss
directory: atom.xml
icon: fa-rss
# Sidebar
widgets:
- recent_posts
- category
- tag
- archive
#- weibo
- links
...
我的操作:
在 themes\BlueLake_config.yml 中添加了网易云跟贴的 productKey 如下
cloudTie: c4cd25e250584e1fxxxxxxxxx ## 网易云跟帖(productKey)
其它任何地方没修改,运行起来的时候不显示。但是看到 themes\BlueLake\layout_partial\comments.jade 中网易云跟帖注释了,这个有影响吗?
if theme.comment.cloudTie
#cloud-tie-wrapper.cloud-tie-wrapper
这个何解。
同时单行代码过长的话不会出现滚动条。而是直接撑到其他地方去了
看起来有点丑陋。
如题。
另外,对于分类在边栏显示的话。
建议增加类似二级分类(子类)的显示及设置这样。
如题。
Chrome 版本:
Version 65.0.3325.162 (Official Build) (64-bit)
然而 Safari、Firefox 均可以正常显示。
大神能不能加个文章多级别分类功能啊 现在只能一级分类 有些情况下不太好用了 感谢
本地运行,页面出现 两个插件都装过了。试过重装 还是不行
extends base - var current_title = page.title || tag.name || category.name || site.title block title if config.subtitle title= config.title + ' | ' + config.subtitle else title= config.title block content for post in page.posts.toArray() .post h1.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo a.ds-thread-count(data-thread-key=post.path, href=url_for(post.path) + '#comments') if theme.disqus a.disqus-comment-count(data-disqus-identifier=post.path, href=url_for(post.path) + '#disqus_thread') if post.description .post-content != post.description else if post.excerpt .post-content != post.excerpt else if post.content - var br = 0 - for (var i = 0; i < 5; ++i) { - br = post.content.indexOf('\n',br+1) if br<0 - break if br >150 - break - } if br < 0 .post-content != post.content else .post-content != post.content.substring(0, br) p(class='readmore') a(href=url_for(post.path))= __('Readmore') include _partial/paginator if theme.disqus script(id='dsq-count-scr', src='//#{theme.disqus}.disqus.com/count.js', async)
markdown表格代码
n | sex | pregnant | value |
---|---|---|---|
1 | male | no | 10 |
2 | female | no | 14 |
3 | female | yes | 4 |
看了下recent_comments.jade中没有网易云更跟帖的评论设置,希望能补充
find the file source\js\search.json.js
in function 'loadData(success)',update var res = JSON.parse(this.response);
to var res = JSON.parse(this.response || this.responseText);
您好,这个主题代码块背景颜色是白色的,能不能让用户自己设置这个代码块的颜色啊?我想让代码块的背景颜色是黑色。谢谢
by UnixFBI
unixfbi.com
就是背景颜色换成黑色。
本地搜索js报错,第三方搜索,一个官网打不开,另一个引用js文件404
在其他主题下能正常显示为表格的内容。
但此主题下似乎并不行。比如:
|Keyword |Description (Default) |Keyword |Description (Default)|
|---------|:--------------------------:|:-----------:|:-------------------:|
|USERID |username/password |FULL |import entire file (N)|
|BUFFER |size of data buffer |FROMUSER |list of owner usernames|
|FILE |input files (EXPDAT.DMP) |TOUSER |list of usernames|
|SHOW |just list file contents (N) |TABLES |list of table names|
|IGNORE |ignore create errors (N) |RECORDLENGTH |length of IO record|
|GRANTS |import grants (Y) |INCTYPE |incremental import type|
|INDEXES |import indexes (Y) |COMMIT |commit array insert (N)|
|ROWS |import data rows (Y) |PARFILE |parameter filename|
|LOG |log file of screen output |CONSTRAINTS |import constraints (Y)|
并不能被渲染为表格
如果想自定义整个页面的背景色(想换一个暖和一点的颜色),可以定制吗?如果可以改哪个配置文件夹的哪个参数?
不支持 添加后hexo g 会报错
hexo g
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Language must be one of [danish,dutch,english,french,galician,german,italian,polish,portuguese,russian,spanish,swedish]
at Object._extract [as extract] (/Users/ZYB/Hexo/node_modules/keyword-extractor/lib/keyword_extractor.js:24:15)
at getKeywords (/Users/ZYB/Hexo/node_modules/hexo-generator-json-content/index.js:58:19)
at setContent (/Users/ZYB/Hexo/node_modules/hexo-generator-json-content/index.js:77:21)
at postsNames.reduce (/Users/ZYB/Hexo/node_modules/hexo-generator-json-content/index.js:125:52)
at Array.reduce (native)
at site.posts.sort.filter.map.post (/Users/ZYB/Hexo/node_modules/hexo-generator-json-content/index.js:125:30)
at Model._Query.Query.Query.map (/Users/ZYB/Hexo/node_modules/warehouse/lib/query.js:229:17)
at Hexo.hexo.extend.generator.register.site (/Users/ZYB/Hexo/node_modules/hexo-generator-json-content/index.js:125:7)
at Hexo.tryCatcher (/Users/ZYB/Hexo/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/Users/ZYB/Hexo/node_modules/bluebird/js/release/method.js:15:34)
at /Users/ZYB/Hexo/node_modules/hexo/lib/hexo/index.js:340:24
at tryCatcher (/Users/ZYB/Hexo/node_modules/bluebird/js/release/util.js:16:23)
at MappingPromiseArray._promiseFulfilled (/Users/ZYB/Hexo/node_modules/bluebird/js/release/map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (/Users/ZYB/Hexo/node_modules/bluebird/js/release/promise_array.js:114:31)
at MappingPromiseArray.init (/Users/ZYB/Hexo/node_modules/bluebird/js/release/promise_array.js:78:10)
at MappingPromiseArray._asyncInit (/Users/ZYB/Hexo/node_modules/bluebird/js/release/map.js:30:10)
at Async._drainQueue (/Users/ZYB/Hexo/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/Users/ZYB/Hexo/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/ZYB/Hexo/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
Add Google Analytics feature get this error.
GET https://www.google-analytics.com/analytics.js net::ERR_BLOCKED_BY_CLIENT
Thanks!
在themes下的_config.yml设置了disqus的值,结果访问的时候出现:
We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
啥原因呢?还要做其他操作?
安裝 2.2.0版本
npm install [email protected] --save
> [email protected] postinstall /usr/share/nginx/html/hexoblog/node_modules/hexo-generator-json-content/node_modules/hexo-util
> npm run build:highlight
> [email protected] build:highlight /usr/share/nginx/html/hexoblog/node_modules/hexo-generator-json-content/node_modules/hexo-util
> node scripts/build_highlight_alias.js > highlight_alias.json
[email protected] node_modules/hexo-generator-json-content
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
裝完之後,執行 hexo g 會報錯
[root@3cx1 hexoblog]# hexo g
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Object has no method 'find'
at site.posts.sort.filter.filter.map.actualPost (/usr/share/nginx/html/hexoblog/node_modules/hexo-generator-json-content/index.js:126:20)
at Query.filter (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/warehouse/lib/query.js:305:9)
at Hexo.hexo_generator_json_content (/usr/share/nginx/html/hexoblog/node_modules/hexo-generator-json-content/index.js:124:7)
at Hexo.tryCatcher (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34)
at /usr/share/nginx/html/hexoblog/node_modules/hexo/lib/hexo/index.js:340:24
at tryCatcher (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at MappingPromiseArray._promiseFulfilled (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/promise_array.js:114:31)
at MappingPromiseArray.init [as _init$] (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/promise_array.js:78:10)
at MappingPromiseArray._asyncInit (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/map.js:30:10)
at Async._drainQueue (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/async.js:143:10)
at Async.drainQueues (/usr/share/nginx/html/hexoblog/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:458:13)
請問該怎麼解決?
hexo-theme-BlueLake/languages/zh-CN.yml
缺少
search: 请输入关键词...
baidusitemap: 网站地图
分享按钮在localhost环境能显示在.github.io就不行了
http://ogeomshjx.bkt.clouddn.com//Fh6r3SvtiK07xwt8-x1p2yxSeNLO
这做何解呢。
看了 Gitment 相关 使用说明,但不清楚应该将以下代码放在什么地方。
<div id="container"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
id: '页面 ID', // 可选。默认为 location.href
owner: '你的 GitHub ID',
repo: '存储评论的 repo',
oauth: {
client_id: '你的 client ID',
client_secret: '你的 client secret',
},
})
gitment.render('container')
</script>
非常感谢。
是否可以增加 显示文字的区域背景颜色设置,和透明效果
无意中发现,当标签为null
或NULL
时,主题无法处理和显示,为NuLl
及类似词时没有问题。虽然无伤大雅,但还是提一下:p
- 反射调用构造方法初始化新的变量
<ul>
<li><p>反射调用构造方法初始化新的变量</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">newInstance</span><span class="params">()</span> <span class="keyword">throws</span> IllegalAccessException, InstantiationException </span>{</div><div class="line"> FileIO fileIO = FileIO.class.newInstance();</div><div class="line"> }</div></pre></td></tr></table></figure>
<p></p>
</li>
- 代表产品:
- [科技美学](http://www.dingdone.com/case/2016-01-13/970191.html)
- [都市云阳](http://www.dingdone.com/case/2016-02-15/1045425.html)
- [么上兼职](http://www.dingdone.com/case/2015-11-30/838092.html)
<li><p>代表产品:</p>
<ul>
<li>科技美学</li>
<li>都市云阳</li>
<li>么上兼职</li>
</ul>
</li>
chrome 56.0.2924.87 (64-bit)
站主你好,
我按照你的说明安装了feed,sitemap,baidu-sitemap插件后,也在public目录下生成了atom.xml,在网页上rss链接也是指向这个atom.xml的,点击过去后就是浏览器找开了这个atom.xml文件的效果。
请问这是安装插件或者其它哪儿的问题吗?
在根目录下修改_config.yml文件# Site 下的subtitle:中文文字
language: zh-CN 部署到git后访问为乱码。
链接:http://gao_chun.oschina.io/
根据
http://blog.csdn.net/qwerty200696/article/details/79010629
安装置顶后..首页模板那如何显示...
lz你blog挂在github上,用畅言,怎么获取的备案号?
打开网页的速度过慢,其实网页是加载出来了,就是不显示出来,等叉掉转圈的状态页面就立马显示出来了
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.