More link styling, setup previous directory navigation

main
sigonasr2, Sig, Sigo 3 years ago
parent 24fa2a205d
commit 75d1745cb4
  1. 12
      out/DIRECTORY_LISTING
  2. 6
      out/articles/DIRECTORY_LISTING
  3. 6
      out/articles/test articles/DIRECTORY_LISTING
  4. 46
      out/sig.css
  5. 11
      sigPlace.java
  6. 46
      sitefiles/sig.css

@ -18,12 +18,12 @@
<body>
<div class="contentBody">
<div class="folderlisting"><a href="/articles">articles</a> 2022-05-04T18:44:57.634585Z gitpod 116</div><br/>
<div class="filelisting"><a href="/codeBackground">codeBackground</a> 2022-05-04T18:44:57.606585Z gitpod 2635</div><br/>
<div class="filelisting"><a href="/otherpage.html">otherpage.html</a> 2022-05-04T18:44:57.614585Z gitpod 901</div><br/>
<div class="filelisting"><a href="/reset.css">reset.css</a> 2022-05-04T18:44:57.618585Z gitpod 1093</div><br/>
<div class="filelisting"><a href="/sig.css">sig.css</a> 2022-05-04T18:44:57.626585Z gitpod 3652</div><br/>
<div class="filelisting"><a href="/testfile.html">testfile.html</a> 2022-05-04T18:44:57.626585Z gitpod 829</div><br/>
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-05-04T19:35:50.868925Z gitpod 116</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-05-04T19:35:50.828925Z gitpod 2635</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-05-04T19:35:50.836925Z gitpod 901</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-05-04T19:35:50.840925Z gitpod 1093</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-05-04T19:35:50.852925Z gitpod 4314</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-05-04T19:35:50.856925Z gitpod 829</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -18,9 +18,9 @@
<body>
<div class="contentBody">
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-05-04T18:44:57.590585Z gitpod 618</div><br/>
<div class="filelisting"><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-05-04T18:44:57.594585Z gitpod 1559</div><br/>
<div class="folderlisting"><a href="/articles/test articles">test articles</a> 2022-05-04T18:44:57.446585Z gitpod 69</div><br/>
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-05-04T19:35:50.808925Z gitpod 618</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-05-04T19:35:50.812925Z gitpod 1559</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-05-04T19:35:50.716925Z gitpod 69</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -18,9 +18,9 @@
<body>
<div class="contentBody">
<div class="filelisting"><a href="/articles/test articles/test1.article">test1.article</a> 2022-05-04T18:44:57.598585Z gitpod 1111</div><br/>
<div class="filelisting"><a href="/articles/test articles/test2.article">test2.article</a> 2022-05-04T18:44:57.598585Z gitpod 807</div><br/>
<div class="filelisting"><a href="/articles/test articles/test3.article">test3.article</a> 2022-05-04T18:44:57.602585Z gitpod 1020</div><br/>
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-05-04T19:35:50.816925Z gitpod 1111</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-05-04T19:35:50.820925Z gitpod 807</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-05-04T19:35:50.820925Z gitpod 1020</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -1,3 +1,33 @@
a:link{
color:#D7F;
font-size:0.8em;
}
a:visited{
color:#D7F;
font-size:0.8em;
}
a:hover{
color:white;
font-size:0.8em;
}
a.nounderline:link{
text-decoration:none;
}
a.nounderline:visited{
text-decoration:none;
}
a.nounderline:hover{
text-decoration:none;
}
h2{
font-size:3em;
}
.generateTime{
font-size:10px;
color:blue;
@ -131,3 +161,19 @@ body{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .folderlisting{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .icon:link{
text-decoration:none;
}
.contentBody .icon:visited{
text-decoration:none;
}
.contentBody .icon:hover{
text-decoration:none;
}

@ -171,8 +171,19 @@ public class sigPlace {
}
sb.append(d).append("\n");
}
sb.append("<h2>Directory Listing for "+key+"</h2>");
sb.append("<div class=\"folderlisting\"><a href=\"")
.append(key)
.append("..\" class=\"icon\">&#x1F4C1;</a><a href=\"")
.append(key)
.append("..\">.. </a><a href=\"")
.append(key)
.append("..\" class=\"nounderline\">(Previous Directory)</a></div>");
for (Path f : map.get(key)) {
sb.append("<div class=\"").append((Files.isDirectory(f)?"folderlisting":"filelisting")).append("\">")
.append("<a href=\""+(f.toAbsolutePath().toString().replace(Paths.get(OUTDIR).toAbsolutePath().toString(),""))+"\" class=\"icon\">")
.append((Files.isDirectory(f)?"&#x1F4C1;":"&#x1F5CE;"))
.append("</a>")
.append("<a href=\""+(f.toAbsolutePath().toString().replace(Paths.get(OUTDIR).toAbsolutePath().toString(),""))+"\">")
.append(f.getFileName())
.append("</a>\t")

@ -1,3 +1,33 @@
a:link{
color:#D7F;
font-size:0.8em;
}
a:visited{
color:#D7F;
font-size:0.8em;
}
a:hover{
color:white;
font-size:0.8em;
}
a.nounderline:link{
text-decoration:none;
}
a.nounderline:visited{
text-decoration:none;
}
a.nounderline:hover{
text-decoration:none;
}
h2{
font-size:3em;
}
.generateTime{
font-size:10px;
color:blue;
@ -130,4 +160,20 @@ body{
.contentBody .filelisting{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .folderlisting{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .icon:link{
text-decoration:none;
}
.contentBody .icon:visited{
text-decoration:none;
}
.contentBody .icon:hover{
text-decoration:none;
}
Loading…
Cancel
Save