Minimal blog software written in Haskell
Haskell CSS
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
html
posts
templates
ArchivedPosts.hs
CSS.hs
Config.hs
GenerateArchives.hs
GenerateIndex.hs
GeneratePosts.hs
Input.hs
Main.hs
Publish.hs
README.md
RSS.hs
RecentPosts.hs
Templates.hs
Types.hs
Utility.hs

README.md

hblog

Static HTML generator for minimal blogs. Write your posts using markdown and the blog is built automatically.

Current features:

  • RSS Feed
  • Archives
  • Most Recent Posts
  • CSS Bindings

You can see an example of an hblog website here.

Quick Usage Directions:

  1. Put your posts into the /posts/ directory. One post per file. The posts should be in the following format:

    Line 1: Post Title

    Line 2: Unix epoch timestamp of post creation date

    Line 3: Author Name

    Line 4 -> eof: Markdown of the post content

  2. Setup the paths in the Config.hs file. Only need to edit the "siteDirectory" function to point to where your files are. Make sure the directories in the Config.hs file exist. (hblog doesnt currently create directories)

  3. Edit the templates in the css and templates directories.

  4. Run the following command to compile the blog into the "html" folder:

runhaskell Main.hs
  1. Finally upload all the files in the "html" folder to your web server.