A C program generates the body for gemlog index file by scanning files conforming to the gemlog standard. Outputs result to stdout for attaching headers and footers via shell script. Executable is ~16KB
Go to file
StackSmith e0b0876489 md README 2021-11-07 12:58:26 -06:00
README.md md README 2021-11-07 12:58:26 -06:00
gemlog_index.c added files 2021-11-07 12:55:57 -06:00

README.md

gemlog_index

gemlog utility generates an index of all gemlog entries in the specified directory. The index is a list of gemtext links.

To be qualified as a gemlog file, the file must be:

  • a .gmi file;
  • filename must start with a date in YYYY-MM-DD format;
  • first line must contain a #HEADER used as link name.

USAGE EXAMPLES

gemlog_index . | sort

Add an alias to your .bash_aliases to index and prepend a header file

alias gemlog='cat header.txt <(~/bin/gemlog_index . | sort -r ) > index.gmi'