blog /

Filename Size Date modified Message
css
images
posts
static
templates
toplevel
95 B
1.5 KB
7.6 KB
98 B

Overview

This is the source code for my blog, built using hakyll. I have tried to keep it as clean code to provide a base for others looking for a blog in hakyll. When I initially created this blog, I struggled with the feed creation since the existing hakyll feed module (in version 3.3) didn't fit my needs.

Changes for your own blog

First, clone the repo. Next, delete all the posts, images, static files, etc. The files you want to keep are everything in the css folder, everything in the templates folder, and index.markdown and posts.html from the toplevel directory. Lastly, you will need to edit the templates and files to use your own name and urls.

  • templates/atom.xml : update the title, author, and urls.
  • templates/atom-post.xml: update the url
  • templates/default.html: update the blog name (and perhaps the footer)

  • templates/disqus.html: Update with your disqus id and urls, or delete the template and the only change needed to blog.hs is to delete the line near the top which has *applyTemplateCompiler "templates/disqus.html"

  • index.markdown: edit to change the homepage

License

The blog.hs code itself and the templates are licensed under the BSD3, the same license used by hakyll. The content of the posts and images (and other content) are published under the Creative Commons CC BY-NC-SA 3.0

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.