#+TITLE: Blog with Org Mode #+AUTHOR: Peng Li #+EMAIL: seudut@gmail.com #+DATE: <2016-10-26> #+STARTUP: showall #+STARTUP: inlineimages #+OPTIONS: toc:nil date:t 今天总算把 Blog 的框架大致弄好了。主要参考了 =Org-mode= 的 tutorial, [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#Special-comment-section][Publishing Org-mode files to HTML]] 和 [[https://ogbe.net/blog/blogging_with_org.html][Blogging using org-mode (and nothing else)]]。 其中 =css= , 利用的是 =worg.css=, 并参考了[[http://dayigu.github.io/WhyUseOrgModeToWriteBlog.html][为什么用org-mode写 blog?]] 和 [[http://wiki.houye.xyz/blogwithorg-mode.html][用org-mode写博客]]。 * Org-publish 配置 其中有些配置可能是 =Org= 版本不同的原因,有些不同。比如 =htlm-head=, 代替 了 =style= #+INCLUDE: "../my-publish.el" src emacs-lisp :lines "29-" #+BEGIN_SRC sh sudo aptitude install tmux emacs #+END_SRC * CI build * Web server * Crontab #+BEGIN_SRC sh # m h dom mon dow command */30 * * * * cd /home/seudut/blog && make publish OUTDIR="~/www/html/" emacs=/usr/local/bin/emacs UPDATE=true #+END_SRC