My Blogging Workflow

Emacs Blog Workflow

Blogging with jekyll and org mode cloning the repo

git clone https://github.com/vishnudevtj/vishnudevtj.github.io.git

I keep a note.org file which contains all my notes , also have a org capture for note which inserts the notes . When i need to post my note as a blog . The required region is selected , and it is exported with ox-gfm exporter , since jekyll uses the github flavoured Markdown . Using the Yasnippet , the front matter of the post is inserted

# -*- mode: snippet -*-
# name: Jekyll FrontMatter
# key: front
# --
---
title: ${`(capitalize (replace-regexp-in-string "[0-9][0-9][0-9][0-9] [0-9][0-9] [0-9][0-9]" "" (replace-regexp-in-string "-" " " (file-name-base))))`}
updated: ${`(format-time-string "%Y-%m-%d %H:%M:%S" (current-time))`}
---

this snippet insets the title [from the file name] and update time

Jekyll is installed using Docker

docker pull jekyll/jekyll

There is a cool package for emacs called Prodigy which is used to manage external services .

So prodigy is used to fire up the docker container . Magit is used to upload the changes to github