Mr.Seven

Results 122 comments of Mr.Seven

Is there a good way to implement the non-blocking I/O (i.e. `java.nio` or `epoll` or I/O Multiplexing) to save the number of threads when concurrently requesting, while preserving the interceptor...

@BoyuanYan 老哥好,方便的话贴一下正确的实现吗?:smile:

@BoyuanYan 好的,多谢老哥

@HelloSilicat Hello,你可以在About页面对应的这个Markdown文件最开头添加以下文字,就像我这个Demo源文件一样:[Demo的About页面markdown源文件](https://raw.githubusercontent.com/iTimeTraveler/hexo-theme-hiero/site-source/source/about/index.md) ``` --- date: 2015-08-16 14:58:08 comments: false --- ```

@jerryc127 在hiker主题的配置文件`_config.yml`中最下面,有个donate的配置项,把`enable`设为false应该就可以了,你试试吧 ```yml # donation button donate: enable: true ```

@jerryc127 判断当前页面是否是About页面,Hexo官方没有提供API,Hiker主题里有一处就是about页面的顶部大图那里用了个比较trick的办法。具体代码在`/layout/_partial/header-post.ejs`文件[第40行](https://github.com/iTimeTraveler/hexo-theme-hiker/blob/master/layout/_partial/header-post.ejs#L40) 用了如下`is_current("about", false) `这样的方式判断的,其实就是判断url里包含不包含about字符,不是很严谨。如果不介意的话你可以借鉴一下 ```yml ```

@jerryc127 应该不行,官方只支持category页面和tag页面,关于页面没有相应的判断api,如果感兴趣的话可以找找官方文档或者其他的主题

你可以直接参考我的hexo源目录:https://github.com/iTimeTraveler/hexo-theme-hiero/tree/site-source 摘要是需要在markdown文章中间添加一行 ```xml ``` 图片的话,是在每个markdown文章头部有个`photo`字段,其实不难

@catplant 哈哈哈,客气:smile:

@lvshen9 Hello,这个是我的Hexo的Demo目录,你可以参考一下:https://github.com/iTimeTraveler/hexo-theme-hiero/tree/site-source 其中,在`source/_posts`目录中有一篇`Stephen-Hawking.md`的文章,可以看到排版到右侧的这个段落是这么写的,你可以试试: ```markdown {% pullquote right%} Alongside the benefits, AI will also bring dangers, like powerful autonomous weapons, or new ways for the few to oppress the many. {%...