Commit 0e19e99457
Unsigned
Layout: unified · split
README.org +3 −28
| @@ -8,39 +8,14 @@ and sub-pages such as blog posts. | ||
| 8 | 8 | * Configuration |
| 9 | 9 | |
| 10 | 10 | If you want to replicate this project structure, you'll need to customize your |
| 11 | =.emacs= file appropriately. | |
| 12 | ||
| 13 | My =.emacs= file below show a handful of project-related settings | |
| 14 | ||
| 15 | #+BEGIN_SRC lisp | |
| 16 | ;; Project publishing settings | |
| 17 | (setq org-publish-project-alist | |
| 18 | '(("cleberg.net" | |
| 19 | :base-directory "~/Source/cleberg.net/" | |
| 20 | :publishing-function org-html-publish-to-html | |
| 21 | :publishing-directory "~/Source/cleberg.net/public/" | |
| 22 | :auto-sitemap t | |
| 23 | :recursive t | |
| 24 | :section-numbers nil | |
| 25 | :with-toc nil | |
| 26 | :with-author nil | |
| 27 | :html-validation-link nil | |
| 28 | :with-tags t | |
| 29 | :html-head "<link rel=stylesheet href=/static/styles.css>" | |
| 30 | :html-preamble "<nav><a href=/>Home</a><a href=/blog/>Blog</a><a href=/notes/>Notes</a><a href=/services/>Services</a></nav>") | |
| 31 | ||
| 32 | ("static" | |
| 33 | :base-directory "~/Source/cleberg.net/static/" | |
| 34 | :base-extension "css\\|el" | |
| 35 | :publishing-directory "~/Source/cleberg.net/public/static/" | |
| 36 | :publishing-function org-publish-attachment) | |
| 37 | ("website" :components ("cleberg.net" "static")))) | |
| 38 | #+END_SRC | |
| 11 | =.emacs= file appropriately, or load a custom =.el= file. | |
| 39 | 12 | |
| 40 | 13 | If you're within emacs while changing =.emacs=, you'll need to reload the |
| 41 | 14 | configuration with =M-x load-file= and hit enter to reload the current file |
| 42 | 15 | (=.emacs=). |
| 43 | 16 | |
| 17 | See the [[elisp/publish.el][publish.el]] file for this repository's configuration. | |
| 18 | ||
| 44 | 19 | * Building |
| 45 | 20 | |
| 46 | 21 | When ready to publish, open any of the =.org= files in the project and execute |