Set of posix sh scripts to generate static sites (like bashblog but not dependent on bash)
Go to file
Nova 20659025cd Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00
output Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00
pages More or less the same , but XD 2021-06-24 13:08:43 -03:00
.gitignore More or less the same , but XD 2021-06-24 13:08:43 -03:00
CHANGELOG Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00
LICENSE More or less the same , but XD 2021-06-24 13:08:43 -03:00
Makefile Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00
README.md Another README.md update 2021-06-25 14:34:22 -03:00
TODO More or less the same , but XD 2021-06-24 13:08:43 -03:00
gensite Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00
mkpage Breaking changes, listed in CHANGELOG 2021-07-28 12:36:15 -03:00

README.md

static site scripts

Description

This is a fork of the original project enabling XHTML 1.1 support.

Default values were left blank on this variant.

Usage

  • sh create.sh <filename> <title> <description> <author>
  • sh generate.sh

Features

  • Small and simple to understand (I hope).
  • Small amount of dependencies, requires a POSIX shell and basic Linux/Unix utilities[1][2].
  • Markdown supported by default[0], easily extendable to add your <favorite markup language>.
  • RSS and Atom output support.
  • Sitemap support (sitemap.xml and urllist.txt).

Pages

Pages are defined as shellscripts containing the metadata, for example the file pages/html-example.sh. The content filename is the basename of the shellscript with the type of markup file appended to it (.html or .md), for example the file pages/html-example.html.

Markdown is supported. By default "smu"[0] is set as a Markdown processor, to change this set $markdown to your favorite Markdown-to-HTML converter in the file generate.sh.

Dependencies

cat, cut, date, mkdir, printf, read, sed, sh (POSIX), test, tr

License

ISC, see LICENSE file.

References

Extras