Clog is a home-grown static site generator in Python.
pip install clogUsage: clog [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
build Converts Markdown sources to HTML pages
deploy Deploys site to GitHub pages
develop Preview site using live-server
new Create a new siteThe directory structure of a new site:
.
├── config.yaml
├── content
├── layouts
├── static
└── themes
Contains written information written in markdown (e.g. a blog post).
Provides extra layouts that are not provided with the theme, which is important when you're trying to make a custom page such as a portfolio page. An example using this feature will be given later on.
Static contains files such as css, javascript, and images.
Configuration file for the site.
Manually create content files in content/posts/ directory. Markdown files created directly in the content directory become top-level pages for the site.
The file should start with this:
---
title: "Hello World"
date: 2020-02-29T01:02:03+01:00
---clog develop
Running the command below will place publishable content in ./public directory.
clog build
clog deploy --autocommit