My very first post
Hello World!
As you can guess from the title, this is my very first blog post. I am not really sure, whether I will provide posts on a regular basis here. Most probably not… However, in the case I find something useful enough to share it, I will do so. Let's see where the journey goes.
This blog lives in org-mode!
Yes, the posts you are reading right now is a *.org
file exported to html, and the blog is generated with org-publish
.
More precisely, I am using something like this:
(defun acemacs/site-format-entry (entry style project) (format "[[file:%s][%s]] --- %s" entry (org-publish-find-title entry project) (format-time-string "%Y-%m-%d" (org-publish-find-date entry project)))) (setq org-publish-project-alist '(("orgfiles_blog" :base-directory "~/Documents/workspace/website/org" :base-extension "org" :publishing-directory "/ssh:labora:~/Dokumente/website/posts" :publishing-function org-html-publish-to-html :headline-levels 3 :section-numbers nil :with-toc nil :with-date t :auto-sitemap t :sitemap-filename "blog.org" :sitemap-title "Blog" :sitemap-sort-files anti-chronologically :sitemap-format-entry acemacs/site-format-entry :sitemap-file-entry-format "%d - %t" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"../custom_style.css\" />" :html-postamble nil) ("images_blog" :base-directory "~/Documents/workspace/website/org/img" :base-extension "jpg\\|gif\\|png" :publishing-directory "/ssh:labora:~/Dokumente/website/posts/img" :publishing-function org-publish-attachment) ("blog" :components ("orgfiles_blog" "images_blog" ))))
Actually, I am really fascinated by the ease of this method. I can easily write my blog-post in emacs utilizing the full power of org-mode and publish it right away to my web-server!