GithubHelp home page GithubHelp logo

isabella232 / nginx-fancyindex-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xbmc/nginx-fancyindex-theme

0.0 0.0 0.0 1.04 MB

Theme for Nginx' fancyindex module

JavaScript 39.86% CSS 39.56% HTML 20.58%

nginx-fancyindex-theme's Introduction

NGINX FancyIndex Theme

A prettier theme for nginx' fancyindex module. Further details about this excellent module can be found at the dev's github page.

NOTE:

NGX-FANCYINDEX truncates the file name to 50 characters subtracts 3 and then appends a "..>" to the truncated name. This can be fixed by recompiling NGX-FANCYINDEX after changing line 55 of "ngx_http_fancyindex_module.c":

From:

#define NGX_HTTP_FANCYINDEX_NAME_LEN 50

To:

#define NGX_HTTP_FANCYINDEX_NAME_LEN 500 (or some other number greater than 50)

In the nginx fancyindex module 0.4.0 or higher, it is now possible to use a directive to control the name length.

fancyindex_name_length
Syntax: fancyindex_name_length length
Default: fancyindex_name_length 50
Context: http, server, location
Description: Defines the maximum file name length limit in bytes.
Usage:
  • Compile nginx with the fancyindex module.
  • Include the contents of 'fancyindex.conf' in your location directive of your nginx conf.
  • copy the remaining items in your web root under 'fancyindex'.
  • header.html
  • footer.html
  • css\fancyindex.css
  • fonts\*
  • images\breadcrumb.png
  • Restart your nginx server.
Added/Modified:
  • Mime type icons from Splitbrain
  • Icons default to enabled on large devices and off on small devices like phones.
  • If you'd prefer no icons at all: copy css\fancyindex_NoIcons.css css\fancyindex.css
  • Slightly better handling of mobile CSS click areas.
  • Added HTML5 History for quicker page transitions.
Addendums:
  • If you want your 'Parent Directory/' listing back in your file listings:
  • Read: This Issue

Image1

Image1

Image1

nginx-fancyindex-theme's People

Contributors

theinsomniac avatar kib avatar twiddern 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.