Commit 64572fbc authored by Turner Hall's avatar Turner Hall
Browse files

added pretty directory listings for apache

parent c5e413d3
Options +Indexes
# SET INDEX OPTIONS BECAUSE I'M NOT A PLEB
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
# DISPLAY ORDER
IndexOrderDefault Descending Name
# SPECIFY HEADER FILE
HeaderName header.html
# SPECIFY FOOTER FILE
ReadmeName footer.html
# DO NOT LIST THESE FILES IN THE DIRECTORY LISTING
IndexIgnore header.html footer.html .htaccess icons *.log *,v *,t .??* *~ *# ICONS! :)
AddIcon icons/parentdir.gif ..
AddIcon icons/foldericon.gif ^^DIRECTORY^^
AddIcon icons/greenbit.gif ^^BLANKICON^^
AddIconByType (IMG,icons/picicon.gif) image/*
AddIconByType (AUDIO,icons/musicon.gif) audio/*
AddIcon icons/vidicon.gif .mp4 .ogv .webm
AddIcon icons/compicon.gif .tar .7z .zip
AddIcon icons/fileicon.gif .ods .odt .txt .pub
AddIcon icons/exec.gif .scala .sh .c .py .java
\ No newline at end of file
......@@ -6,7 +6,11 @@ all:
./swx_sitemap $(DESTDIR) > $(DESTDIR)/sitemap.xml
gzip --best -c $(DESTDIR)/sitemap.xml > $(DESTDIR)/sitemap.gz
./swx_plan $(DESTDIR) > $(DESTDIR)/siteplan.html
cp .htaccess $(DESTDIR)
cp .roothtacc $(DESTDIR)/.htaccess
cp .filehtacc $(DESTDIR)/img/.htaccess
cp fileheader.html $(DESTDIR)/img/header.html
cp filefooter.html $(DESTDIR)/img/footer.html
cp -R icons $(DESTDIR)/img/icons
clean:
rm -rf *.static
......
<pre><em>GNU3 directory listing.<br>
<pre><a href="https://gnu3.xyz/" title="Home">Home Page</a></pre>
</body>
</html>
<html>
<head>
<title>GNU3 Files</title>
</head>
<body>
<h1>GNU3 Files</title>
<style type="text/css">
body {
background: url(img/amber.png) no-repeat center fixed;
background-size: cover;
background-color: rgba(0,0,0,0.8);
color: white;
text-align:center;
font-family: Verdana;
box-sizing: border-box;
}
a {
color:#00fe00;
text-decoration: none;
cursor: pointer;
}
a:hover {
color:#00fe00;
text-decoration: none;
border-bottom: 1px solid #f0a000;
cursor: pointer;
}
h1, h2 {
color:#00fe00;
}
pre {
margin: 3px 0;
color: #777;
}
pre img {
display: inline;
}
img {
margin: 3px 0;
}
</style>
icons/exec.gif

342 Bytes

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment