Simple theme for nginx fancyindex module.
This theme will (with javascript) tidy up and make the directory listed produced by https://github.com/aperezdc/ngx-fancyindex look nicer.
If there is a file called README or README.txt it will be displayed below the directory index as preformatted text.
README.md also works and will be processed as markdown before being displayed.
Create a directory /.index/ within your webroot, and copy the theme
directory from this repo into it.
Add the following to the nginx config.
fancyindex on;
fancyindex_exact_size off;
fancyindex_localtime on;
fancyindex_header "/.index/theme/header.html";
fancyindex_footer "/.index/theme/footer.html";
Edit the theme/header.html
file to change the page title, add content to the opengraph meta tags, or set a favicon.
Edit the theme/footer.html
file to change the page footer text.
Edit theme/theme.css
to change the default accent colour (#3747bb
) to a different one.
If you want to enable a god-awful bit of functionality, you can edit theme/script.js
to uncomment the replaceHTML();
call that allows per-directory HEADER.html
and FOOTER.html
files to be used in place of this index where they exist.
A slightly-customised version of this is in use at https://mirrors.melbourne.co.uk/
Coming Soon
Visual inspiration from https://github.com/alehaa/nginx-fancyindex-flat-theme