This is the repo for my personal website. It serves static HTML pages from a Haskell backend built with servant, lucid, and org-mode.
All the blog posts are written in the Emacs Org Mode format. Upon startup, the
server reads all .org
files in the blog/
directory and parsers them via my
org-mode library. The parsed results are fed into org-mode-lucid and stored in
the server’s runtime environment. Whenever a request for a blog post is made,
one of these stored Html ()
structures is injected into the template for the
rest of the page and then served.
Simple edit one of the .org
files in the blog/
directory, and the next time
the site is deployed, your changes will be included.
The website is hosted on Heroku, and is deployed automatically upon every merge
to this repository’s master
branch. This blog post of mine explains the
details.
そのサイトの全てのブログは EmacsのOrg Mode フォーマットで書かれています。サーバー が起動する時、ブログファイルが全部読まれ、私の書いた org-mode ライブラリによって パースされ、サーバーの実行環境で保存されます。サイトにブログのリクエストが入ると、 パースされた内容がページに投入され普通のHTMLとしてユーザーに返却されます。
blog/
にある .org
ファイルを編集し、サイトが次にデプロイされる際にブログの新
しい内容や変更は自動的に含まれます。
このサイトは Heroku でホストされています。本レポジトリの master
が更新される度
にサイトが自動的にデプロイされます。詳しくは このブログ で説明されています。