Git Product home page Git Product logo

site-loader's Introduction

site-master

Serve multiple static sites run from a single Brunch directory

This project will generate one or several static websites (separate domains) from separate text files in an augmented markdown which allows whole pages to be written in Teacup.

A summary file consisting of JSON describing all pages is created and placed in a location where Brunch can pick it up and assemble it into the front end javascript.

The SubSites are NPM modules. These modules contain a site.js file to describe meta data for the html head section. The module contains a directory named brunch-payload- which has all the styling information for the site. Finally, The module contins a directory named templates. This is where all the source files are found.

All the pages are rendered directly from coffee-script into HTML. The sources used to be in Markdown and hosted by a server running Keystone and Express with the actual stories served by a mongo server.

The experience was less than perfect, Mongo and Keystone sometimes fought for swap space, and the containers would die. The editor for mmrkdown that Keystone provides was a headache. The conversion to React made all the pages balloon out of proportion to their content. And finally, Markdown was a very restrictive vehicle for text expression via the web.

After giving up in late November, everything has been converted to static html in coffee-script using Halvalla. Each story is actually executed to produce the final html.

Two sites that are generated with this methodology are http://stjohnsjim.com/ (some stories - try one, you might laugh) and http://bamboosnow.com/ (about an amazing and useful substance I discovered on the tropic island of Saipan)

site-loader's People

Contributors

dependabot[bot] avatar jahbini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

site-loader's Issues

Your eyes welcome

@LouisBarranqueiro, I came across your hexo theme several months ago. Unfortunately, hexo was not able to help my long term needs. Which is to generate multiple sites simultaneously, and integrate all their attributes as a JSON file for the front end javascript.

My first two sites are http://stjohnsjim.com/ (some stories) and http://bamboosnow.com/ (about an amazing substance I discovered in the tropics)

Please check out http://bamboosnow.com/ - it uses as much as I could port of your theme.

however, It's still your theme and I want to make sure I acknowledge the source.

I await your wishes

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.