Giter Site home page Giter Site logo

victoredwardocallaghan / blaenk.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blaenk/blaenk.github.io

0.0 3.0 0.0 9.13 MB

the source for my personal site, written in Haskell, powered by Hakyll

Home Page: http://www.blaenkdenum.com

blaenk.github.io's Introduction

This is the source for my personal site.

The Hakyll site's source (the Haskell code in src/) is BSD licensed as stated in the cabal file.

Feel free to use everything else in provider/, but if you can help it please don't use the site's style (in provider/scss) and instead use your own, or at the very least differentiate the style as much as you can. I created this style for this personal site, so I'd prefer that it remains unique!

If you use vim, I highly recommend the vim-pandoc-syntax plugin for better Pandoc-flavored markdown editing, complete with codeblock highlighting and concealments.

Features:

  • "live" editing; see changes as you save them, in-place (Haskell STM Channels -> HTML5 WebSockets)
  • fully integrated with MathJax using $ inline and $$ block delimiters
  • nice urls, e.g. .com/posts/some-post and .com/some-page, no trailing 'index.html'
  • easy page and post creation (place in posts/ or pages/)
  • default index page groups posts chronologically by year, where first group (for current year) doesn't show year heading
    • post excerpts in index pages with metadata excerpt: some excerpt
  • notes system, pretty much same as regular posts but with /notes/ path and no tags
  • custom deploy script for github pages setup, ./site deploy
    • src/deploy.sh setup for initial configuration
  • drafts system for posts, pages, notes --- stored in drafts/
    • ./site watch and ./site preview will include drafts/ items in generated site
    • everything else, such as ./site deploy, assumes non-drafts
    • ./site clean preview cleans generated "preview site," including drafts
  • tags support with pretty and "slugified" versions of tags
    • i.e. in metadata specified as "Linux", shows up this way in posts, but tag page is /tags/linux/
  • scss consolidation, e.g. edit any one scss file, all of them get re-merged into single scss file
  • abbreviation support, defined as *[GHC]: Glasgow Haskell Compiler
  • table of contents generation with pretty section numbers
    • can left-align with metadata toc: left (right is default)
    • can turn off toc completely with toc: off
    • section renaming: # Some Header {toc="show this way in toc"}
    • section ignoring (don't include in toc and don't number): # Some Header {.notoc}
    • table of contents section numbering with pure CSS
    • header section numbering with pure CSS
  • pygments highlighting of codeblocks
    • UTF-8

    • very fast, server-backed implementation

    • produces simple, clean, and semantically correct markup

        <pre><code class="highlight language-haskell">the code</code></pre>
      
    • uses first class for language specification, {.haskell}, or optional {lang=haskell} keyvar, or alternative backtick codeblock syntax:

        ``` haskell
        putStrLn "Hey"
        ```
      
    • optional caption with text="some caption" keyvar

  • correctly ignores the file "4913" that vim creates on Windows to test if the directory is writeable
  • blockquotes with pretty borders
  • atom feed generation
  • disqus comments on by default, can turn off with metadata comments: off
    • only loads the JS when comments are on
  • github history integration
    • show the commit that most recently altered a given post in its footer, as well as a link to its overall history on github

blaenk.github.io's People

Contributors

blaenk avatar

Watchers

James Cloos avatar Edward O'Callaghan 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.