Yusen

Results 31 comments of Yusen

可以参考友言 https://github.com/yscoder/hexo-theme-indigo/blob/card/layout/_partial/post/comment.ejs https://github.com/yscoder/hexo-theme-indigo/blob/card/layout/_partial/plugins/uyan.ejs

需要在 hexo 的生成阶段把文章中的 emoji 标记渲染为图片或者 emoji 字体图标,可以看看这个插件 [hexo-tag-emojis](https://github.com/sergiolepore/hexo-tag-emojis)

系统中如内置 emoji 字体(如win8、win10、ios),是可以直接把 emoji 字符输入到文章中,并显示出来的。 输入: ![image](https://cloud.githubusercontent.com/assets/12295378/19433474/796f2550-9493-11e6-8208-0dfee4df5085.png) 显示: ![image](https://cloud.githubusercontent.com/assets/12295378/19433494/90000dfc-9493-11e6-9871-d10f19fcd618.png) 电脑端 emoji 字符输入问题,可以通过安装支持 emoji 的输入法解决(如win10内置输入法、搜狗等)。 这样不需要装任何插件。

How do you configure ?

配置`viewChange`。 ``` $('#ca').calendar({ viewChange: function(view, y, m){ console.log(view, y, m); } }) ``` - **view:** 当前视图,date OR month - **y:** 年 - **m:** 月

有一个更新数据的方法。 **示例:** ``` js $(selector).calendar('setData', [ { date: '2016-9-21', value: '更新数据' } ]) ``` 你可以在 viewChange 时根据当前月份来重新设置数据。

This component does not support this format. You can get yourself treated Date.

没有页面继承这一说法,只有包含 `include`。 你的具体需求是什么,或者说是要解决什么问题?

`ejs` 不支持模版页,只能手动在子页面中 `include` 模版页中的公共部分。 你可以找找其他 gulp 插件去实现。

是在 server.js 中调用的。只是模版预处理而已。 这个 Demo 是最初的想法,现在有了更好的方案了,回头我更新下。