Migrated the Blog!
It took me a few years to finally get around to it, but I've decided to migrate my old blog off of Google Blogger over to GitLab Pages!
GitLab and GitHub Pages both take projects that generate static content (what you might find in a public
folder), and host it for you. For now, I'm hosting it at (http://runswithd6s.gitlab.io), but eventually, I'll probably link my personal vanity domain to this site.
To generate the site, I chose Cryogen, a Clojure based application that consumes both Markdown or AsciiDoc files to generate pages and blog posts. I really enjoy Clojure as a programming language, and I've been looking for any excuse to use it.
One customization in the resources/templates/config.edn
file was necessary to make it work in GitLab Pages:
:blog-prefix ""
Then, I created a .gitlab-ci.yml
file containing the following:
image: clojure:latest
pages:
stage: deploy
script:
- lein run
- find
- mv resources/public public
artifacts:
paths:
- public
only:
- master
Commit, push. Done. Pulling in the old blog was done with a Ruby script found in a gist somewhere. I made a few modifications to output the Clojure map at the top of each post file instead of what you might find at the top of a Jekyll file.
There are plenty of broken links and images, and some strange formatting. However, I feel it's a pretty good start. It's now 01:20 in the morning, and I absolutely must get to bed. I do want to bicycle commute into work, but I'm going to be exhausted! Fun times!