Code Monkey home page Code Monkey logo

svejcar-dev's Introduction

Hello there ๐Ÿ‘‹

Vaclav's GitHub stats Top Langs

svejcar-dev's People

Contributors

vaclavsvejcar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

svejcar-dev's Issues

Update TOC post to reflect changes in how Pandoc handles Templates

Pandoc changed how it handles Templates which made your post on adding a TOC to your Hakyll site out of date. Please consider adding these changes to the post as your post seems to be the only post on this topic.

There are two solutions that I have found: yours and Jasper's.

withTableOfContents options = options { writerNumberSections  = True
                                      , writerTableOfContents = True
                                      , writerTOCDepth        = 2
                                      , writerTemplate        = Just tocTemplate
                                      }

where tocTemplate is either

tocTemplate :: Template Text
tocTemplate = case runIdentity $ compileTemplate "" tmpl of
  Left  err      -> error err
  Right template -> template
 where
  tmpl = T.intercalate
    "\n"
    [ ""
    , "<div class=\"toc\"><div class=\"header\">Table of Contents</div>"
    , "$toc$"
    , "</div>"
    , "$body$"
    ]

or

tocTemplate =
  either error id $
    either (error . show) id $
      Pandoc.runPure $
        Pandoc.runWithDefaultPartials $
          Pandoc.compileTemplate "" "<div class=\"toc\"><div class=\"header\">Table of Contents</div>$toc$</div>$body$"

The former being your solution and the latter Jasper's.

I did not want to be presumptuous by making a pull request on your writing, but I do hope that you would update this.

Thank you.

Implement RSS feed

As any proper blog, it should have RSS feed implemented for blog posts.

Implement dark mode

Aim of this task is to implement alternative dark mode with both manual and automatic switching based on current user's OS preferences.

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.