Code Monkey home page Code Monkey logo

personal-site's Introduction

Source for mattwetmore.me

The website is powered by Hakyll, with a few small extensions. The module CustomCompilers includes a Pandoc compiler with math extensions enabled, as well as a compiler that allows custom writers in Pandoc. I use a custom writer largely based on this example to add sidenotes to the HTML output.

Hakyll stores the compiled site in a folder called _site, which I don't track in this repository. The shell script publish.sh (which accepts a commit message as an argument) commits the contents of _site to https://github.com/wetmore/wetmore.github.com and pushes them to Github, which hosts the site.

personal-site's People

Contributors

wetmore avatar

Stargazers

kadir-gunel avatar Adam Fiedler avatar Angadh Nanjangud avatar Thomas Pethick avatar Jennie avatar Arthur Xavier avatar  avatar Patrick Elliott avatar Evelyn Aurora Lee avatar jamis avatar Pradeep Gowda avatar  avatar Kai Wang avatar  avatar Cody Walker avatar CP Clermont avatar

Watchers

 avatar  avatar James Cloos avatar Evelyn Aurora Lee avatar

Forkers

silky kadir-gunel

personal-site's Issues

Hakyll 4.7 support

ghc --make site.hs gives the following:

CustomCompilers.hs:28:55:
    Couldn't match expected type ‘Item Pandoc’
                with actual type ‘Compiler (Item Pandoc)’
    In the second argument of ‘withItemBody’, namely ‘pandoc’
    In a stmt of a 'do' block:
      withItemBody (unsafeCompiler . customWriter wopt) pandoc

CustomCompilers.hs:35:13:
    Couldn't match type ‘Compiler (Item Pandoc)’ with ‘Item Pandoc’
    Expected type: Compiler (Item Pandoc) -> Compiler (Item String)
      Actual type: Item Pandoc -> Compiler (Item String)
    In the second argument of ‘(>>=)’, namely
      ‘withItemBody (unsafeCompiler . customWriter wopt)’
    In the expression:
      (readPandocWith ropt <$> getResourceBody)
      >>= withItemBody (unsafeCompiler . customWriter wopt)

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.