The Informatics Young-Team's blog/website.
JavaScript Haskell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
posts
templates
.gitignore
README.md
hakyll.hs
index.html
inf-yt.org.uk.sublime-project
links.md
mission-statement.md
people.md

README.md

inf-yt.org.uk

The INF-YT blog.

Setting up locally

This blog is static site, generated by Hakyll, so requires hakyll to be installed locally:

cabal install hakyll

Compile/recompile the Hakyll binary on your system with

ghc --make hakyll.hs
./site rebuild

You can test the site locally by running ./hakyll preview.

Adding posts

Write posts in Pandoc markdown, and save them under posts/pretty-url.md.

Each post is preceded by a 'metadata block', where you must provide title, author, and date fields.

---
title: MY AWESOME POST ON DATA FREEDOM!!!
published: 2013-03-27
author: INF-YT
---

<!-- post content -->

After you've written a post, you can git push back up to GitHub.

Deploying

Hakyll is now set to use rsync to copy its files up to the server with:

./hakyll deploy

The command it uses is rsync -avz -e ssh ./_site/* inf-yt:/var/www/ which assumes you have an entry for the inf-yt server in ~/.ssh/config configured like this:

Host inf-yt
    HostName        inf-yt.org.uk
    User            ubuntu
    IdentityFile    ~/.ssh/LAMP.pem
    IdentitiesOnly  yes

where ~/.ssh/LAMP.pem is the private RSA key for ubuntu@inf-yt.org.uk.