-
-
Notifications
You must be signed in to change notification settings - Fork 0
Customization
William edited this page Apr 14, 2022
·
1 revision
The Nginx File Directory has been designed to be heavily customizable. More file and folder listings can be added and directory paths can be changed. Just search for and change the placeholder values in each code section. Additionally, ensure that you have deleted all the extra file and folder rows that are unnecessary for your file listing, so not to confuse users.
All of these instructions require a text editor to be installed.
-
Line 8: Update the
directory
placeholder text between the<title>...</title>
tags with the actual directory name. This will be the title of the webpage.
<head><title>Index of /directory</title></head>
-
Line 10: Update the
directory
placeholder text between the<h1>...</h1>
tags with the actual directory path. This will be the title displayed on the page.
<h1>Index of /directory</h1>
-
Line 13: If this is a directory inside of another directory, remove the
<!--
and-->
to uncomment the link to the directory above the current directory.
<!--<a href="../">../</a>-->
-
Line 13: If this is a directory inside of another directory, change the
../
between the<a>...</a>
tags with the actual link to the folder above.
<a href="folder/">folder/</a> MM-DD-YYYY HH:MM -
- Replace the
folder/
link (between thehref="..."
tag) with the actual link to the folder. - Replace the
folder/
placeholder name (between the<a>...</a>
tags) with the real name of the folder. - Replace the
MM-DD-YYYY HH:MM
placeholder date with the date the folder was uploaded. Do not delete the spaces as they are necessary for spacing. - Add more of these rows as necessary.
<a href="file/">file/</a> MM-DD-YYYY HH:MM -
- Replace the
file/
link (between thehref="..."
tag) with the actual link to the file. - Replace the
file/
placeholder name (between the<a>...</a>
tags) with the real name of the file. - Replace the
MM-DD-YYYY HH:MM
placeholder date with the date the file was uploaded. Do not delete the spaces as they are necessary for spacing. - Add more of these rows as necessary.
Want to make a change? Open an issue!
Want a basic overview? Read the README
.
Want to download the project? Head to the Releases page.
Want to start contributing? Open an Issue or a Pull Request.