How do I write this website?

I use emacs to write and build this website, using the program org-mode, this is basically, kind of a document editing program within Emacs, you can basically write documents in kind of markup language and use the program to export it to html, office word, markdown, or even latex.

Even though I don't use Emacs for day to day programming anymore, since there are much better tools on windows such as, Visual studio and Visual studio code, but org-mode stays a killer application that I always come back to.

I have a microsoft azure subscription, provided by my employer so I use it for the website hosting and deployment system.

So basically I write my stuff in Org, push it to an azure devops project (it's a CI/CD system for microsoft azure that's super simple to use), I have a pipeline that installs Emacs and executes a script in Emacs lisp I wrote to build my website, for my release pipeline I just copy the html to an azure storage container, and I purge my cdn.

You can find my script to build this in blog.el.

One thing, I used to have, was a function that signs all the web pages with my gpg private key, so that readers can know that it's me who wrote this. This was when I was a paranoid fuck. now I just don't care lol.

(defun publish-and-sgin-html (plist filename pub-dir)
  (let ((filename (org-html-publish-to-html plist filename pub-dir)))
        (expand-file-name filename)

One thing I wished I had outside of the box was the ability to use tags, sadly there is no functionality like that for the moment, I will write the functionality when I have time for this.

I could have gone for something like hugo and used a stock theme, but I wanted to show my superior web design skills 😏.

Author: Mohamed Aziz Knani

Date: 2020-05-27 Wed 16:19

Emacs 25.2.2 (Org mode 9.3.6)


hacker emblem