From b317a11d1afc1a0c8968adbd6ff4d01541ee22ee Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 18 Feb 2018 22:15:24 +0100 Subject: emacs: added org-mssola publishing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 3423846..b6aaf74 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -1558,6 +1558,29 @@ And finally set =org-capture-templates=. ("i" "idea" entry (file "") "* %? :IDEA:\n%U\n%a\n"))) #+END_SRC +** Publish project + +I write blog posts with org-mode. Here's the trick: + +#+BEGIN_SRC elisp +(setq org-publish-project-alist + '(("org-mssola" + ;; Path to your org files. + :base-directory "~/Projects/mssola/jo/org/" + :base-extension "org" + + ;; Path to your Jekyll project. + :publishing-directory "~/Projects/mssola/jo/_i18n" + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 + :html-extension "html" + :body-only t ;; Only export section between + ) + + ("mssola" :components ("org-mssola")))) +#+END_SRC + ** Other Insert a value in org mode. See this [[http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode][StackExchange answer]]. -- cgit v1.2.3