so you can focus on writting
only thing you need to do is adding org or markdown files into org folder and git push, no more C-c C-e P f
just focus on writting, travis ci will take care of everything
(org-publish-all)git pushto github pages
everthing you want to custom can be added to html/postamble.html
using http://swiftype.com/
brew install emacs cask
cask install./import.sh
cask exec emacs --batch -l emacs.el -f org-publish-all
cd public
python -m SimpleHTTPServer
# open localhost:8000https://github.com/jcouyang/orgpress/blob/master/emacs.el
there’re few places you need to customize for you own blog
https://github.com/jcouyang/orgpress/orgpress/master/deploy.enc
this is my encrypted deploy key so you better generate your own.
here’s how
ssh-keygen: with name deploy or somthing you like, I named it deploygem install travistravis logintravis encrypt-file deploy --add:
this will generate encrypted version of deploy file. Make sure not to add deploy to the git repository. only add deploy.enc. the option --add will add something like this to your .travis.yml file, which is the decrypt step running on travis ci, so make sure it’s at least before before_script step
cat deploy.pub | pbcopy- open the github repo you wanna publish as github pages > Settings > Deploy keys
PASTE
fill your info
https://github.com/jcouyang/orgpress/blob/master/html/postamble.html