Giter Site home page Giter Site logo

react-static-site's Introduction

React Static Site

For now, this is just me experimenting with using React to build a static site.

I'd like to port my blog across to a React static site, and I'd like to learn more about universal React rendering. Depending on the outcome of this experimentation, I'd like to turn this into a reusable system. A bit like Gatsby.

Aims

  • Every page should be built to a static HTML file.
  • Content should be accessible with no JS.
  • If and when JS runs client-side, it should enable partial page transitions.
  • Themes created using React components.
  • Avoid CSS preprocessing in favour of a CSS in JS approach (currently Aphrodite).
  • CSS should work with no JS.
  • It should be possible to author pages using:
    • Markdown.
    • React components.
  • Provide a hot reloading experience for development and content editing.
  • Use Browserify instead of Webpack.

Pages

  • /[page-:pageNumber] - List all posts.
  • /tags[/page-:pageNumber] - List all tags.
  • /tags/[/:tag][/page-:pageNumber] - List all post with a specific tag.
  • /:slug - A post or page.

Content Transpilation

There are a few steps we need to execute in order to build the site. Every URL needs a corresponding JSON file and HTML file.

Collections

Collections are pages created automatically and list collections of content.

  • Home (collection of all posts).
  • Tags (collection of all tags).
  • Tag (collection of all posts with a specific tag).

react-static-site's People

Contributors

juice49 avatar

Watchers

James Cloos avatar  avatar

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.