Code Monkey home page Code Monkey logo

nginx-fancyindex-theme-whitesmoke's Introduction

English|简体中文

Nginx-Fancyindex-Theme-WhiteSmoke

A theme is based on Naereen's fancyindex theme(light), equiped with [email protected] developed by hustcc.

how to config the theme

  1. Edit styles.css if you want to change your site's style, like set background-image or change the color of the site.

  2. Edit Script tags in footer.html so you can choose which js file would be load when the site is opened or set its property.

    Delete tag Script appointed to loadmd.js if you needn't description on the header and footer of page.

    Delete tag Script appointed to canvas-nest.js if you don't like this canvas; To change to another canvas, just put the new js file into the same directory and edit the Script tag in footer.html.

how to enable the theme in Nginx Directory.

It's very simple to enable this theme following the steps below.

  1. Download the theme to the diretory you want to share.
    cd $(file directory)
    git clone [email protected]:Tu5039/Nginx-Fancyindex-Theme-WhiteSmoke.git
  2. Edit your nginx server. For example, if the configure file locates on /etc/nginx/conf.d, named files.conf.
    sudo nano /etc/nginx/conf.d/files.conf
    Your config file might be
    # /etc/nginx/conf.d/files.conf old
    server{
        listen 8889;
        client_max_body_size 4G;
        charset utf-8;
    
        location /{
            autoindex on;
            autoindex_exact_size off;
            root /home/nginx-dev/files/;
        }
        access_log /var/log/nginx/files.log;
    }
    Replace autoindex with fancyindex and add hearder.html and footer.html like this.
    # /etc/nginx/conf.d/files.conf new
    server{
        listen 8889;
        client_max_body_size 4G;
        charset utf-8;
    
        location /{
            fancyindex on;
            fancyindex_exact_size off;
            fancyindex_header "/Nginx-Fancyindex-Theme-WhiteSmoke/header.html";
            fancyindex_footer "/Nginx-Fancyindex-Theme-WhiteSmoke/footer.html";
            fancyindex_ignore "Nginx-Fancyindex-Theme*";
            alias /home/nginx-dev/files/;
        }
        access_log /var/log/nginx/files.log;
    }

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.