Blog- use English instead of Chinese
[blog.git] / posts / Blog-with-org-mode.org
1 #+TITLE: Blog with Org Mode
2 #+AUTHOR: Peng Li
3 #+EMAIL: seudut@gmail.com
4 #+DATE: <2016-10-26>
5 #+STARTUP: showall
6 #+STARTUP: inlineimages
7 #+OPTIONS: toc:nil date:t
8
9 [[http://orgmode.org][Org-mode]] is an Emacs package, which is used for keeping notes, maintaining TODO lists, planing projects, and authoring
10  documents with a fast and effective plain-text system. In this blog, I am going to introduce how to setup a blog site
11  using Org-mode. As you can see, this website is generated by Org-mode. All the souce code is located at [[https://github.com/seudut/blog][blog]]. It has
12  refered to lots of other websites, like [[http://orgmode.org/worg/][worg]], [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][Publishing Org-mode files to HTML]], [[https://ogbe.net/blog/blogging_with_org.html][Blogging using org-mode (and nothing else)]].
13
14 * Org-publish configure
15 Here is the configure of Org-publish. It setups the most important  variable =org-publish-project-alist=.  Also, it defines
16 the header and footer of the html page.
17 #+INCLUDE: "../my-publish.el" src emacs-lisp :lines "29-"
18 #+BEGIN_SRC sh
19   sudo aptitude install tmux emacs
20 #+END_SRC
21
22
23
24 * CI build
25
26 * Web server
27
28 * Crontab
29 #+BEGIN_SRC sh
30   # m h  dom mon dow   command
31   */30 *   *   *   *     cd /home/seudut/blog && make publish OUTDIR="~/www/html/" emacs=/usr/local/bin/emacs UPDATE=true
32 #+END_SRC