Moved from gt kallist -> tildegit. Also updated some stuff

This commit is contained in:
Nova 2021-08-08 19:58:40 -03:00
parent d633b25b8e
commit c567cf6f34
3 changed files with 11 additions and 12 deletions

View File

@ -5,15 +5,16 @@ static site scripts
Description
-----
This is a fork of the [original project](http://git.codemadness.org/static-site-scripts/log.html) enabling XHTML 1.1 support.
This is a fork of the [original project](http://git.codemadness.org/static-site-scripts/log.html) enabling XHTML 1.1 support.
As well featuring the `gensite` script and the ability to source configuration files like [Saait](http://git.codemadness.org/saait) and filenames as UUIDs inherited from [Logarion](https://logarion.orbitalfox.eu)
Default values were left blank on this variant.
[Control-C/~novaburst](https://ctrl-c.club/~novaburst) is a site generated using those scripts
Usage
-----
- `sh create.sh <filename> <title> <description> <author>`
- `sh generate.sh`
- `mkpage <title> <description> <author>`
- `gensite`
Features
--------
@ -36,9 +37,12 @@ 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 generate.sh.
the file gensite
Dependencies
@ -66,4 +70,4 @@ References
Extras
--------
- The sample CSS file included is [mirageCSS](https://git.sr.ht/~novaburst-dev/mirageCSS)
- The sample CSS file included is [envs](https://envs.net)'s default CSS file

View File

@ -1,5 +0,0 @@
# mkpage
This script is a metadata generator which can also create the associated markdown files.
It takes three arguments: title, description, and the author
Example: mkpage "Sample Text" "Sample Text" "Sample"

View File

@ -33,7 +33,7 @@ gnudate() {
#bsddate(fmt,date)
bsddate() {
date -j "+$1" "$(printf '%s' "$2" | tr -Cd '[:digit:]')" >/dev/null
date -j "+$1" "$(printf '%s' "$2" | tr -Cd '[:digit:]')" 2>/dev/null
}
# added for compatibility with GNU and BSD date.