Giter Site home page Giter Site logo

lazyblog's Introduction

Lazy blog

a static blog generator which tries to do as little as possible:

  • do only the most essential stuff on server side (like providing links from index page to all posts), and move all non-essential stuff (like tags, sorting, filtering) to client side (Javascript)

  • do only the most essential stuff when generating index.html (patch it, instead of regenerating anew)

  • try to keep code as small as possible (under 100 lines of bash script)

It tries to fit between jr (which does not look very search-engine friendly), and bashblog (which re-reads all posts on single post modification).

Technology used

Server-side:

  • sed -i
  • envsubst

Client-side:

  • array.map, array.filter, array.forEach (FF1.5+, IE 9+)
  • (document|element).querySelector[All] (FF 3.5+, IE 9+, Opera 10+, Safari 3.2+)
  • window.onhashchange (Chrome 5.0+, FF 3.6, IE 8+, Opera 10.6+, Safari 5.0+)

lazyblog's People

Contributors

lex-2008 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

lazyblog's Issues

`edit` command should accept both full file names and filenames without extension

typical situation:

user@hostname:~/blog$ ls
blog-post.html
blog-post.md

Typing lazyblog edit b<TAB> will lead to this situation:

user@hostname:~/blog$ lazyblog edit blog-post.

Currently, you have to type md manually.

Instead, lazyblog should recognise above situation (user-provided filename ends with dot, such file does not exist, but if you add md - file exists) and add md automatically

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.