Giter Site home page Giter Site logo

hacksoc.org's Introduction

Building

Set-up

  1. Install stack.
  2. If you don't have GHC 8.0.2, run stack setup

Build Site Generator

This can be skipped on subsequent executions unless you edit hakyll.hs

  1. stack build

This will install a lot of dependencies the first time because Haskell projects always have lots of dependencies.

Note: you may run out of disk space in the stack build if you have a very small /tmp (or /run, depending on how things are set up). stack will complain at you and delete its temporary files. If you run it again, stack build will then pick up where it left off, without rebuilding the dependencies it already built, so you should be good.

Build Site

  1. stack exec hacksoc-org build

You can use stack exec hacksoc-org clean to remove the generated files, or just delete _cache and _site yourself.

Usage

This is a summary of hakyll.hs in plain English.

  • Templates (in templates/) control how things look. There are currently three:
    • news.html renders a single news article.
    • newslist.html renders a list of news articles, and includes the index page content currently (as we want that to appear on every list page).
    • wrapper.html is applied to every rendered page and contains the header and footer.
  • Files in static/ are copied straight to the site, with the static/ prefix dropped (so static/foo becomes accessible at hacksoc.org/foo).
  • Articles in news/ appear on the main page and the news pages. See current entries for the format.
  • All .html files are wrapped.

hacksoc.org's People

Contributors

46bit avatar barrucadu avatar cascades avatar chongyangshi avatar ddm999 avatar dincahill avatar dpk avatar icydoge avatar lexbailey avatar lordaro avatar matzipan avatar qlkzy avatar sourceless avatar taneb avatar tinnedtuna avatar vivan avatar

Watchers

 avatar  avatar

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.