tufu9441 / maupassant-hexo Goto Github PK
View Code? Open in Web Editor NEWThis project forked from icylogic/maupassant-hexo
A simple Hexo theme forked from icylogic.
Home Page: https://www.haomwei.com
License: MIT License
This project forked from icylogic/maupassant-hexo
A simple Hexo theme forked from icylogic.
Home Page: https://www.haomwei.com
License: MIT License
我看到你的Blog Home 可以分页 而 归档没有分页. 我设置了_config.yml的
per_page: 10
pagination_dir: page
好像就回连归档也分页 请问你的Blog怎么设置归档不分页的.
RT
In file layout/base.jade line 8
case config.feed.type
This line introduced such error: Cannot read property 'type' of undefined
I modify you code as follows and it works.
if config.feed
case config.feed.type
when "rss2"
- var feed_type='application/rss+xml'
when "atom"
default
- var feed_type='application/atom+xml'
Maybe you did not meet such problem, but considering the config.feed first may be better.
文章中使用引用,显示有问题...
你说
“刚发现新版本的一个#号变成中文的了”
不知道你修改哪里了。
where is about/ and where is atom.xml?
How to setting?
在移动端,代码块超出屏幕宽度后,右边的代码看不见了.不能正常显示,建议增加滚动条,实现代码块的屏幕适配.
@v123582 现在在某个分类或者标签页面时,导航栏中没有任何一项处于current状态,例如https://www.haomwei.com/categories/technology/ 页面显示效果如下:
但是我希望处在某个分类或者标签页面时,导航栏中的“归档”一项能处于current状态,就像位于真正的归档页面时一样,例如:
我觉得应该是修改layout/_partial/helpers.jade
里的一些代码,但是试了好久也没有研究出来,不知你能否有空时帮我看看是否有可能实现呢?谢谢!
最近一次更新添加了分享功能,但是开启后没有看到变化,反倒是首页导航图标和边栏位置错乱。
我看到你文章里有写很多问题的解决方案,帮忙解决了不少问题,先表示感谢。 然后,你提到的front-matter没有找到在哪里哦,所以目录和分类没法弄好,另外,订阅功能是怎么弄,需要安装什么吗?有空解答下,谢啦
现在模版中这样写法的话,使用 CDN 不是太方便,如果托管在 github 把静态文件用上国内的CDN对网页加载速度提升还是很明显的,之前用过 Next 主题,他把静态文件的路径设置放到了_config.yml 中设置,这样如果这个配置参数设置为 CDN 的URL时,可以直接读取 CDN 的静态文件内容
你好,首先需要感谢你贡献的这个主题,我非常喜欢。。:-D
问题是,我在_config.yml文件中注释了友情链接的配置,但是在hexo generate后,预览界面上依旧还有友情链接的侧边栏,貌似并没有什么作用,请问是哪里出现问题了吗?
页面显示以下代码
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) span.ds-thread-count(data-thread-key=post.path) if post.description .post-content= post.description else if page.excerpt .post-content= page.excerpt else if post.content .post-content= strip_html(post.content).replace(/^\s/, '').replace(/\s_$/, '').substring(0, 300) p(class="readmore") a(href=url_for(post.path))= __('Readmore') include _partial/paginator
理想的情况应该是像这个帖子里的前两条分割线一样
但是由二级标题自动生成的分割线就会穿透目录
总之,******
的分割线没有问题,## Title
自动加入的分割线就会有问题
How it looks right now:
And how it should look:
https://gist.github.com/gojun077/cd7eb3587b1dd803dc29#file-brainworkshop_updatelabel-pyw
比如说这种
| ABCD | EFGH | IJKL |
|:-----|:-----|:-----|
| a | b | c |
| d | e | f |
| g | h | i |
ABCD | EFGH | IJKL |
---|---|---|
a | b | c |
d | e | f |
g | h | i |
在文章中使用了但是显示的摘要还是没有变化
如题,当使用markdown语法生成表格时,格式全部丢失。望有时间解决,谢谢!
[root@hexo hexoblog]# hexo g && hexo s
ERROR Process failed: languages/kr-KR.yml
YAMLException: end of the stream or a document separator is expected at line 1, column 16:
reading_label: %s 의 게시물 모음
^
at generateError (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)
at throwError (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)
at readDocument (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1508:5)
at loadDocuments (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1544:5)
at Object.load (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1561:19)
at Hexo.yamlHelper (/root/hexoblog/node_modules/hexo/lib/plugins/renderer/yaml.js:7:15)
at Hexo.tryCatcher (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
at Hexo.<anonymous> (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/method.js:15:34)
at /root/hexoblog/node_modules/hexo/lib/hexo/render.js:51:21
at tryCatcher (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromiseAtPostResolution (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:245:10)
at Async._drainQueue (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
my first
2016-01-03 | 分类于 分类
aaa
分享到:
微博
QQ空间
腾讯微博
微信
页面大致是这样,最后那个分享到自动就出现了,而且鼠标移动到【分享到】 又会出现:
分享到:
微博
QQ空间
腾讯微博
微信
新浪微博
QQ空间
搜狐微博
人人网
网易微博
腾讯微博
开心网
豆瓣网
QQ
美丽说
蘑菇街
百度
淘宝
谷歌
微信
点点网
花瓣网
堆糖
有道云笔记
朋友网
Facebook
Twitter
Linkedin
MSN
多说分享插件
没看到有能设置的地方?
如题。
My environment is:
hexo: 3.1.1
os: Linux 3.13.0-32-generic linux x64
http_parser: 2.5.0
node: 5.0.0
v8: 4.6.85.28
uv: 1.7.5
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 47
openssl: 1.0.2d
when I try to use hexo g
and hexo s
then visit localhost:4000 I got this:
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo span.ds-thread-count(data-thread-key=post.path) if theme.disqus span.disqus-comment-count(data-disqus-identifier=post.path) if post.description .post-content != post.description else if page.excerpt .post-content != post.excerpt else if post.content - var br = post.content.indexOf('\n') 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)
Can you help me fix this? thx!
您好,我想尝试一下这个主题。在安装hexo-renderer-sass时出错,通过日志发现,是编译libsass时出错的,原因是不认识uint64_t和uint_fast32,只要包含头文件stdint.h就可以了,但是npm每次安装都会从新下载编译,没有修改的机会,您看有什么办法能解决这个问题。
我的环境是win10,VS2013。
谢谢!
安装之后页面打开出现如下文本
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + ' | ' + config.subtitle block content for post in page.posts.toArray() .post h2.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 = post.content.indexOf('\n') 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)
请问是我缺少什么设置吗?
例如处于一行末尾的单词collaborate, 有可能会被切成colla和borate. colla显示在该行的末尾, borate显示在下一行的开始.
npm install hexo-renderer-sass build的时候失败。报的错误都是源代码build的错误,是否node.js版本或者其他什么东西的版本对不上号?我对node.js不熟。望赐教。十分感谢!
Hi -
i was having an issue with your theme where multiple categories assigned to a post were being concatenated without spacing in between them on the posts page.
It may be a "hacky" fix, but I inserted a " "
in posts.jade, line 13 a(href=url_for(category.path))= " " + category.name
to produce the necessary spacing.
Wanted to give you a heads up. Thanks for the excellent theme!
RT
不是采用多说
那样的,而是类似默认主题landscape那样的分享。
又有新问题啦...
中文字体在chrome感觉好丑,如何修改字体
使用 4331ef7 之前的高亮css, 代码块解析是正常的
但是使用新的代码高亮之后,如果是代码块中有代码块的话那么会有不正常,比如
````markdown
```C
#include <stdio.h>
int main(void){
return 0;
}
```
```
#include <iostream>
using std::cout;
using std::endl;
int main(){
cout<<"Hello, world!"<<endl;
return 0;
}
```
````
像这样的代码块,就会多出一个很不自然的滚动条(实际上照常解析的话那个地方根本不需要滚动条)
效果如下
而使用hexo的codeblock(lang设置为plain)的话,根本解析不出来,变成了
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><!--12--> <!--13--></span><br></pre></td></tr></table></figure>
这个主体换上以后, 代码高亮问题不太好. 北京是黑色的. 而且每种语言显示的都一样. 这个有解决方案么?
如题,如何新建About页面?
很喜欢这个简洁的主题,��请问这个主题能支持mathjax吗?
您好,很喜欢这个主题!可是我安装以后怎么没有demo里的disqus评论了呢,求告知怎么添加disqus啊
在 0.0.0.0:4000 页面下显示:
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo span.ds-thread-count(data-thread-key=post.path) if theme.disqus span.disqus-comment-count(data-disqus-identifier=post.path) if post.description .post-content != post.description else if post.excerpt .post-content != post.excerpt else if post.content - var br = post.content.indexOf('\n') 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)
楼主,你又改了什么。。新的主题 md的样式支持的不全了。。这样的不支持了
java 代码也换了
楼主,我把fork的代码加在了base.jade中,发现这个编译的时候会自动给Img标签,套上一层a标签,目前没有找到在哪编译进去的,您知道吗。
markdown 引用> 的标示不起作用,都变成逗号了
请问,你博客里面的“历史”中的时间线是如何绘制的?谢谢。
如题,谢谢:)
有计划支持吗?
在style.scss的756行,原先是
font-family: Menlo;
使用你以前的style.scss改成了
font-family: "Input Mono", "PT Mono", Consolas, Monaco, Menlo, monospace;
代码还是要用等宽字体好看一点。
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.