(package-refresh-contents)
(package-install 'htmlize))
-;; constants
-;; (defconst root-dir (file-name-directory (or load-file-name buffer-file-name)))
-(defconst root-dir "~/Private/blog/")
-(defconst publish-dir "~/Private/publish_html/")
-
-
+;; constants
+;; (defconst root-dir "~/Private/blog/")
+(defconst root-dir (file-name-directory (or load-file-name buffer-file-name)))
+(defconst publish-dir (concat root-dir "_site/"))
+(defconst res-dir (concat root-dir "res/"))
+(defconst css-file (concat res-dir "worg.css"))
:html-table-of-contents nil
:html-postamble nil ;dont export creator auto validation info in html postamble div
:html-link-home "/"
- :html-head "<link rel='stylesheet' href='/Users/peli3/Private/blog/res/worg.css' />"
+ :html-head ,(concat "<link rel='stylesheet' href='" css-file "' />")
:html-head-include-default-style nil
:html-head-include-scripts nil)
("org-static"
-
今天总算把 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写博客]]。
+++ /dev/null
-#+TITLE: Emacs List Tips
-#+AUTHOR: Peng Li
-#+EMAIL: seudut@gmail.com
-#+DATE: 2016-12-04
-
--- /dev/null
+#+TITLE: note
+#+AUTHOR: Peng Li
+#+EMAIL: seudut@gmail.com
+#+DATE: 2017-03-04
+
+* some post to do
+- introduction to perspeen
+- work flow with vim tmux iterm
+- elisp tips & org-mode tips
+++ /dev/null
-#+TITLE: Org Tips
-#+AUTHOR: Peng Li
-#+EMAIL: seudut@gmail.com
-#+DATE: 2016-11-10
-
-* Fix Chinese fonts in Org table
-
-*
+++ /dev/null
-#+TITLE: Test
-
-
-This is first test page for blog.
#+TITLE: Sitemap
- + [[file:Blog-with-org-mode.org][Blog with Org Mode]]
- + [[file:elisp-tips.org][Emacs List Tips]]
- + [[file:git-note.org][Git Note]]
+ + posts
+ + [[file:posts/Blog-with-org-mode.org][Blog with Org Mode]]
+ + [[file:posts/elisp-tips.org][Emacs List Tips]]
+ + [[file:posts/git-note.org][Git Note]]
+ + [[file:posts/My-work-flow-with-tmux-vim-zsh-iterm.org][My Work Flow with Tmux + Vim + Zsh + iTerm2]]
+ + [[file:posts/linux-note.org][Note of Linux (Debian)]]
+ + [[file:posts/org-tips.org][Org Tips]]
+ + [[file:posts/test.org][Test]]
+ + [[file:posts/raspberrypi-note.org][The note of raspberry]]
+ + [[file:posts/print-vs-message-in-emacs.org][jifjeif]]
+ + [[file:posts/A-new-package-for-working-with-multiple-workspaces.org][fjioejfe]]
+ [[file:index.org][My Personal Wiki]]
- + [[file:linux-note.org][Note of Linux (Debian)]]
- + [[file:org-tips.org][Org Tips]]
+ [[file:README.org][README]]
+ [[file:remember.org][Remember]]
- + [[file:test.org][Test]]
- + [[file:print-vs-message-in-emacs.org][ij]]