command
module
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: May 1, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gen
gen
is an another static site generator.
Getting Started
-
Install gen if you haven't yet.
-
Create a new site:
$ gen new mysite
-
Change directory to mysite
, build and serve the site locally:
$ cd mysite
$ gen build
$ gen serve
Run with --help
or -h
for options.
-
Go to http://localhost:3000
.
ProTip! You can use entr to automatically rebuild the site when changing files:
$ while true; do find . -type f -not -path '*/\.git/*' | entr -d gen build; done
Installation
From binary
Download the precompiled binary from releases page.
From source
-
Install the latest version of Go if you haven't yet.
-
Install with go install
:
$ go install go.astrophena.name/gen@latest
go install
puts binaries by default to $GOPATH/bin
(e.g.
~/go/bin
).
Use GOBIN
environment variable to change this behavior.
License
MIT © Ilya Mateyko
Documentation
¶
gen is an another static site generator.
Source Files
¶
Directories
¶
Package cli implements the command line interface of gen.
|
Package cli implements the command line interface of gen. |
Package fileutil contains utility functions for working with files and directories.
|
Package fileutil contains utility functions for working with files and directories. |
Package frontmatter implements frontmatter-related functions.
|
Package frontmatter implements frontmatter-related functions. |
Package scaffold implements the creation of new sites.
|
Package scaffold implements the creation of new sites. |
Package site implements site building.
|
Package site implements site building. |
Package version contains a version of gen.
|
Package version contains a version of gen. |
Click to show internal directories.
Click to hide internal directories.