Coder Social home page Coder Social logo

blog's Introduction

This repo contains Hakyll-based personal blog of Dmitry Dzhus. It replaces the old Django-based blog engine which was used in 2006-2012.

Features

  • Home page

  • Extract title from the first <h1> heading in the file

  • Mobile view with responsive design

  • Multi-language support

    Language-specific sections: post page, feeds, post list, tags, pagination.

    Each entry can hava a language specified via lang metadata field. There are feeds in both languages. Template must depend on entry language. Next/previous page links must lead to entries in the same language.

  • Atom feeds

  • Sitemap for posts

  • Source code highlighting and scrolling

  • Next/previous page link

  • modificationTimeField for each entry is populated from the author date of its latest Git revision

Known issues

  • Presumably due to pagination/tags code, all pages are rebuilt after even a single post is modified.

A note on Semantic Web technologies

The last big changes to the old engine were made somewhere in 2009. In 2017, the state of the Semantic Web tech adoption has changed (positively) compared to 2010s:

  • HTML5 is mainstream

  • Microformats, RDFa were «superseded» by microformats2

  • Some <link> rel values were dropped

TOCs

It's possible to get Pandoc to include table of contents in the HTML generated for a Markdown post with something like

pandocCompilerWith defaultHakyllReaderOptions defaultHakyllWriterOptions{writerTemplate=Just "$toc$ $body$", writerTOCDepth = 4, writerTableOfContents = True}

Ideally we'd want to place TOC in the post manually (for example by placing <!-- toc --> comment at the desired position).

Perhaps it's best to leave it to the client.

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.