octopress使用技巧

为自己的博客网站添加想要的功能和样式

http://youess.github.io/blog/octopress-blog-records.html ##octopress基本操作

  • 新建博客文章,rake new_post['blog_name']
  • 产生HTML文件, rake generate
  • 预览博客效果, rake preview
  • 推送内容到github, rake deploy 或者 rake gen_deploy
  • 保存到github项目中
    git add .
    git commit -m "modified note"
    git push [for first time](origin source)

##一些配置 ###更换主题 git clone https://github.com/jeremyrea/slimpress .theme/slimpress
rake install['slimpress']

###修改_config.yml *日期格式: date-formate: %Y年-%m月-%d日
*分类前缀显示为中文:category_title_prefix: "分类" *继续阅读/阅读全文:excerpt_link: "阅读全文 &arr;"