# Usage ```sh kewt --help kewt --version kewt --new [title] kewt --post [title] kewt --generate-template [path] kewt --update [dir] kewt --from --to kewt [src] [out] kewt --watch kewt --serve [port] ``` - `--new [title]` creates a new site directory with a default `site.conf`, `template.html`, and `index.md`. - `--post [title]` creates a new markdown file in the configured `posts_dir` with the current date/time as the filename and default frontmatter. - `--generate-template [path]` writes the default `template.html` to the given path (defaults to `template.html` in the current directory). - `--update [dir]` adds any missing keys to `site.conf` and checks `template.html` against the latest default. - `--watch` (`-w`) watches for file changes in the source directory and rebuilds automatically. - `--serve` (`-s`) starts a local HTTP server (python3 or busybox) in the output directory after building. Use with the port number to specify the port. Composable with `--watch`. ## site.conf ```conf title = "kewt" style = "kewt" dir_indexes = true single_file_index = true flatten = false order = "" home_name = "Home" show_home_in_nav = true nav_links = "" nav_extra = "" footer = "made with kewt" logo = "" display_logo = false display_title = true logo_as_favicon = true favicon = "" generate_page_title = true error_page = "not_found.html" versioning = false enable_header_links = true base_url = "" generate_feed = false feed_file = "rss.xml" posts_dir = "" posts_per_page = 12 custom_admonitions = "" ``` - `title` - site title - `style` - style file name from `./styles` (without `.css`) - `dir_indexes` - generate directory index pages when missing `index.md` - `single_file_index` - if a directory has one markdown file and no `index.md`, use that file as `index.html` - `flatten` - flatten sidebar directory levels - `order` - comma separated file/directory name list to order the sidebar (alphabetical by default) - `home_name` - text for the home link in navigation (default: "Home") - `show_home_in_nav` - show home link in navigation (default: true) - `nav_links` - comma separated extra nav links, as bare URLs or Markdown links like `[Label](https://example.com)` - `nav_extra` - raw HTML appended inside the `