Code Monkey home page Code Monkey logo

blog-1's Introduction

Blog for Haskell-jp

Build Status License: MIT

This is the blog for Haskell-jp. It is built with Hakyll. The Makefile contains some simple targets for building the site. In order to use the targets in the Makefile, it is assumed that the stack build tool is installed.

Installing stack

stack can be installed by following the directions from the stack README. Once stack is installed on your PATH, the following Makefile targets can be used.

Building the Blog

$ make site

Build the HTML for the actual site. Generated HTML is placed under generated-site/.

Run Webserver to Serve Blog and Rebuild on Changes

$ make watch

Run a test webserver that will serve our blog content. If the content is changed, it will automatically be rebuilt and you will be able to see the changes live.

Clean All Generated Files

$ make clean

Cleans out all generated files (such as generated-site/ and .hakyll-cache/). Also runs stack clean.

Deploying the Blog

$ make deploy

First generates the site, then commits the generated files to the gh-pages branch. This is kind of hacky, but it seems to mostly work.

Publish a Post as Draft

A sample post is in posts/2017-03-25-sample-post.markdown. Providing an option draft: true, the post is published as draft, which is listed in /drafts page. This feature is mainly used for the purpose of asking review to someone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.