Giter Club home page Giter Club logo

animations's Introduction

This is a static site built with metalsmith -- see metalsmith.js for the pipeline. Most of the standard metalsmith plugins are used, plus a few tricks.

I don't like YAML frontmatter, and the only per-post metadata I need is date and template type, so I encode them in the file name and extension, respectively. metalsmith-date-in-filename gets the date; a custom metalsmith middleware sets the template.

I use metalsmith-browserify to generate a static site JavaScript bundle for the WebGL animations. Within the bundle I use many stackgl modules. Thanks in particular to glslbin for example code.

I use metalsmith-serve and metalsmith-watch for local development. I use the directory animations as the build destination, then serve the root of the project, so that paths start with /animations like in production.

I use this trick for pushing the animations subtree to the gh-pages branch, and thus publishing to GitHub pages.

This is my first time using metalsmith. Here are some pros and cons as I see them.

Pros:

  • Good architectural fundamentals.
  • Superb low-level control. I couldn't do this with Jekyll.
  • Works well once you make the (significant) initial investment.

Cons:

  • Variable module quality. Even the most commonly used modules have odd design choices that'll trip you up. (E.g. metalsmith-permalinks's relative option.)
  • Setting up a pipeline is time consuming. You will need to read the source code of most every module you use and step through it in a debugger to figure out why it isn't working.
  • No common convention for flow control; most modules invent their own pattern matching or filtering convention.
  • Key modules are effectively unmaintained. (metalsmith-collections and metalsmith-permalinks.)

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.