Windows Live Writer编写Octopress

时间:2023-03-09 13:40:13
Windows Live Writer编写Octopress

Windows live Writer是一个可以用来离线编写,并发布博客的工具。

Octopress是一个静态博客生成系统。使用群体多是geek,主要有显示代码清晰,git同步,并且不用购买空间的特点。

写博客都通过html格式比较麻烦,所以这里简单介绍用Windows live Writer本地编写博客。

0.Windows live Writer下载后并不能直接使用,可以先通过设置关联一个博客园账号后打开编辑界面。

    1.用Windows Live Writer编辑好文章,选择以“源代码”形式查看,复制文本。

2.在本地“octopress/public/blog/archives/index.html”找到需要更新的日志,通过记事本软件打开此html。

3.找到<div class="entry-content"></div>,将复制的代码粘贴进去,保存关闭。

4.在octopress目录下运行“rake deploy”命令就可以发布了。

PS:如有图片的话,一般做法还需将图片保存到对应文件夹。此处可以先在“博客园”等网站通过Windows live Writer发布博客,再将源码复制。即省去图片调用。又可做到一篇博客不同地方迅速发布,保留备份。