Giter VIP home page Giter VIP logo

hakyll-bootstrap's Introduction

hakyll-bootstrap

A template for a small corporate Hakyll site.

Using stack

$ stack build
$ stack exec blog -- preview

Using cabal

To get started run:

$ cabal sandbox init
$ cabal install --only-dependencies
$ cabal run preview

The default static pages are renderd with plain HTML with mixins from the /templates folder..

index.html

pages/
  about.html
  contact.html
  privacy.html
  signup.html
  team.html
  tos.html

Blog posts are placed under the /posts folder and are generated from Markdown.

Inline math is enabled via setting the mathjax metadata to on, by default MathJax is disabled.

---
title: Example Blog Post
author: Stephen Diehl
date: 2013-11-13
mathjax: on
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam
non est in neque luctus eleifend. Sed tincidunt vestibulum
facilisis. Aenean ut pulvinar massa.

License

Released under MIT License.

hakyll-bootstrap's People

Contributors

olivierverdier avatar sdiehl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hakyll-bootstrap's Issues

Update to recent version of 'hakyl' and GHC

This repository it very old... But it is the only simple example that has Hakyll with Bootstrap. Also, the first googlable... I will really appreciate updating this repo!

"ghc --make Main.hs" encounter error,how to fix it?

hi.

root@AR:/usr/local/hakyll-bootstrap-site# ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )

Main.hs:32:36: error:
• Couldn't match type ‘unordered-containers-0.2.7.2:Data.HashMap.Base.HashMap
Data.Text.Internal.Text
aeson-1.1.0.0:Data.Aeson.Types.Internal.Value’
with ‘M.Map [Char] a0’
Expected type: M.Map [Char] a0
Actual type: Metadata
• In the second argument of ‘M.member’, namely ‘metadata’
In the expression: "mathjax" M.member metadata
In the second argument of ‘($)’, namely
‘if "mathjax" M.member metadata then
"<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>"
else
""’
root@AR:/usr/local/hakyll-bootstrap-site#

tks

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.