Travel Blog Tools
Problems with blogs
- Takes time to upload photos
- Requires internet
- Have to use a special markup
My requirements
- Use an editor I like
- Offline editing
- Post when connected to internet
- Allow amendments to be posted
- Easy resize & upload of pictures
org2blog
- Emacs 24.1 or greater
- org-mode 7 or greater
- Interacts with wordpress
- Standard org-mode formatting
- Uploads inline images and resizes
Config
- Download: http://marmalade-repo.org/packages/org2blog
- place it in ~/.emacs.d/org2blog
- Add the following to ~/.emacs.d/init.el
(setq load-path (cons "~/.emacs.d/org2blog/" load-path))
(require 'org2blog-autoloads)
Create a blog
- Register a free wordpress blog
- https://wordpress.com
Config a blog
(require 'netrc) ;; or nothing if already in the load-path
(setq blog (netrc-machine (netrc-parse "~/.netrc") "myblog" t))
(setq org2blog/wp-blog-alist
'(("my-blog"
:url "http://username.server.com/xmlrpc.php"
:username (netrc-get blog "login")
:password (netrc-get blog "password"))))
Password file
- Keep passwords separate in ~/.netrc
- chmod 600 ~/.netrc
- Add your wordpress login
machine myblog login myuser password mypass
Using org2blog
- 3 main commands are used;
- Login: M-x wp-login
- New Post: M-x wp-new-entry
- Post: C-u M-x org2blog/wp-post-buffer
Configure your post
#+BLOG: myblog
#+POSTID: 2
#+DATE: [2014-05-02]
#+OPTIONS: toc:nil num:nil todo:nil pri:nil tags:nil ^:nil
#+CATEGORY: Japan
#+TAGS:
#+DESCRIPTION:
#+TITLE: Day 1 - Ueno, Akihabara & Shibuya
body of your post.
References
- wordpress - https://wordpress.com/
- emacs - http://www.gnu.org/software/emacs/
- org2blog - https://github.com/punchagan/org2blog
- Other clients - http://codex.wordpress.org/Weblog_Client