Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

lite

A clean and delicate theme for blog based on Gatsby.

Getting started

Installing lite is quite easy. However, you do need to have a couple of other things installed first:

git clone https://github.com/sqrthree/lite.git myblog
cd myblog
yarn install // or `npm install`

Once initialised, here’s what your project folder will look like:

myblog
├── LICENSE
├── README.md
├── bin
├── config
│   └── default.yaml
├── contents
│   └── hello-world.md
├── gatsby-config.js
├── gatsby-node.js
├── index.js
├── package.json
├── src
├── static
│   ├── CNAME
│   ├── README.md
│   ├── favicon.ico
│   └── robots.txt
└── yarn.lock

All the folders you need to care about

  • config: Site configuration folder, You can configure most settings here.
  • contents: Contents folder, Where you create a new post.

Scripts

yarn run start / npm start

Start a hot-reloading development environment accessible at localhost:8000.

The page will automatically reload if you make changes to the post in contents.

You can get the build errors and lint warnings in the console.

yarn run build / npm run build

Perform an optimized production build to the public folder for your site generating static HTML and per-route JavaScript code bundles.

yarn run serve / npm run serve

Start a local HTML server for testing your built site.

yarn run deploy / npm run deploy

Publish your all files in public to a gh-pages branch on GitHub.

Configuration

You can modify site settings in config/default.yaml.

A better solution is to create a local configuration file, local.yaml, in config folder. All configuration parameters from local.yaml will overwrite default.yaml.

local.yaml is intended to not be tracked in your version control system.

To config/default.yaml to get more details.

Developing

Built With

  • React
  • GraphQL
  • Node.js

Prerequisites

Setting up Dev

git clone https://github.com/sqrthree/lite.git
cd lite
yarn install
yarn run start

LICENSE

This project is licensed under the MIT License.


sqrtthree.com  ·  GitHub @sqrthree  ·  Twitter @sqrtthree

About

📝 🎨 A clean and delicate theme for blog based on Gatsby.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.