Giter VIP home page Giter VIP logo

nginx-fancyindex-theme's Introduction

nginx-fancyindex-theme

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.

Usage

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";

Customisation

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.

Demo

A slightly-customised version of this is in use at https://mirrors.melbourne.co.uk/

Screenshots

Coming Soon

Acknowledgements

Visual inspiration from https://github.com/alehaa/nginx-fancyindex-flat-theme

nginx-fancyindex-theme's People

Contributors

shanemcc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.