Supercharged auto-indexing of a filesystem for web hosting
Files
README.md

autoindex #

A souped-up version of the nginx autoindex, fit into a static website powered by Hugo.

  • file previews/thumbnails
  • reactive layout
  • sorting other than alphabetical
  • tag taxonomies

That inherently means this is most useful for serving files that do not change often. This is a purposeful design goal. Needing to initiate a build command on updates may be inconvenient, but there are also benefits to this workflow. For one: using static, read-only HTML limits the possible security issues.

Usage #

To build all scripts, try:

make build

With the scripts available, try:

autoindex-scan -dir /path/to/dir -output $TEMP
autoindex-inherit -input $TEMP -output $TEMP
autoindex-uri -input $TEMP -output $TEMP
autoindex-template-creators -input $TEMP -output $TEMP -config aliases.toml -template content/creators
autoindex-template -input $TEMP -folder content/folder -tag content/tag
hugo

Notes #

This project assumes UTF-8 encoding everywhere.

Licensing #

Code is released under the terms of the BSD 0-clause license. See LICENSE.md.