Skip to content

MashyBasker/kuro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuro

A static-site generator built to power my website and blog. Kuro is highly opinionated in it's file structure and layout.

Features

Installation

git clone https://github.com/mashybasker/kuro
cd kuro
chmod +x install.sh
./install.sh

kuro is installed to ~/.local/bin by default.

Quickstart

# Create a new project
kuro init mysite

# Build and serve the site
# Visit the site on localhost:3000
kuro serve

To incrementally build the site in watch mode with hot-reload, use the command:

kuro serve --watch

To check for available commands, run kuro help


 kuro 0.1.0

 USAGE:
     kuro <COMMAND> [OPTIONS]

 COMMANDS:
     init [PATH]       Create a new site (default: current directory)
     build [PATH]      Build the site (default: current directory)
     serve [PATH]      Serve the site locally (default: current directory)
     new <NAME>        Create a new page

 OPTIONS:
     --post            Create as a blog post (used with `new`)
     -h, --help        Print this help message

 EXAMPLES:
     kuro init                  Create a new site in the current directory
     kuro init my-site          Create a new site in ./my-site
     kuro build                 Build the site
     kuro new about             Create a new page called 'about'
     kuro new my-post --post    Create a new blog post

Site structure

mysite/
├── content/ # source files for the site
├── dist/    # built site from the source markdown files
├── kuro.yml # config file for the project
├── static/  # static assets (eg. theme files)
└── templates/ # template html files

Configuration

Edit kuro.yml to configure navbar links and social links in the footer.

name: "My site"
author: "Your name"
description: "New Kuro Website"
url: "http://localhost:3000"

# the links will be displayed in the footer
socials:
    - label: github
      url: https://github.com/<profile>

# the links will be displayed in the nav bar
pages:
    - label: about
      path: /about

About

A static site generator to power my website

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages