Set of posix sh scripts to generate static sites (like bashblog but not dependent on bash)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Nova ba50b03bcd mkpage has been rewritten 3 months ago
output Breaking changes, listed in CHANGELOG 4 months ago
pages More or less the same , but XD 5 months ago
.gitignore More or less the same , but XD 5 months ago
CHANGELOG mkpage has been rewritten 3 months ago
LICENSE Updated copyright statement on LICENSE , updated CHANGELOG 4 months ago
Makefile Breaking changes, listed in CHANGELOG 4 months ago
README.md mkpage has been rewritten 3 months ago
TODO More or less the same , but XD 5 months ago
gensite Moved from gt kallist -> tildegit. Also updated some stuff 4 months ago
mkpage mkpage has been rewritten 3 months ago

README.md

static site scripts

Description

This is a fork of the original project enabling XHTML 1.1 support. As well featuring the gensite script and the ability to source configuration files like Saait and filenames as UUIDs inherited from Logarion

Control-C/~novaburst is a site generated using those scripts

Usage

  • mkpage <switch> <title> <description> <author>
  • gensite

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.

If mkpage is used the filename is an UUID and a .md file with the same name. Example: 082ea44f-8633-4dc9-9ff2-f25ee6618013.sh + 082ea44f-8633-4dc9-9ff2-f25ee6618013.md => output/082ea44f-8633-4dc9-9ff2-f25ee6618013.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 gensite

Dependencies

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

License

ISC, see LICENSE file.

References

Extras

  • The sample CSS file included is envs's default CSS file