shithub: mkarchive

Download patch

ref: 5301ade2e6857e2c2c16be38b73f98d18f82e91f
parent: 4a68f09fa1de6bf554c6a53a3addce194b29fc3e
author: Ori Bernstein <[email protected]>
date: Thu Sep 25 20:23:52 EDT 2014

Update the layout generation.

--- a/mhonarc/layout.mrc
+++ b/mhonarc/layout.mrc
@@ -9,7 +9,7 @@
 <!--                                                                    -->
 
 <MSGPGBEGIN>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE html>
 <html lang="en">
 <head>
  <title>$SUBJECTNA$</title>
@@ -20,9 +20,9 @@
    <nav>
     <ul>
         <li> <a href="/">Home</a> </li>
-        <li> <a href="..">Date index</a> </li>
+        <li> <a href="..">List index</a> </li>
         <li> <a href="$TIDXFNAME$#$MSGNUM$">Thread index</a> </li>
-        <li> <a href="$IDXFNAME$#$MSGNUM$">date index</a> </li>
+        <li> <a href="$IDXFNAME$#$MSGNUM$">Date index</a> </li>
     </ul>
   </nav>
   <article>
@@ -53,7 +53,7 @@
 <!-- page.                                                              -->
 
 <IDXPGBEGIN>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE html>
 <html lang="en">
 <head>
  <title>$IDXTITLE$</title>
@@ -84,7 +84,7 @@
 <!--                                                                    -->
 
 <TIDXPGBEGIN>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE html>
 <html lang="en">
 <head>
  <title>$TIDXTITLE$</title>
@@ -117,27 +117,17 @@
 <!--                                                                    -->
 
 <LISTBEGIN>
- <div id="banner">
-  <div id="header">
-   <div class="banner-left"><img src="/icons/g/banner_left.gif" width="17" height="56" border="0" alt="" /></div>
-   <div class="banner-text">$IDXTITLE$</div>
-   <div class="banner-right"><img src="/icons/banner_right.gif" width="10" height="56" alt="" /></div>
-  </div>
-  <div id="topnav">
-   <a href="/">home</a>
-   |
-   <a href="..">month and year index</a>
-   |
-   <a href="$TIDXFNAME$">thread index</a>
-   |
-   <a href="$IDXFNAME$">date index</a>
-   |
-  </div>
- </div>
- <div id="mailinglists">
-  <div id="main">
-<h1>Date Index</h1>
-<div id="didx">
+ <header><h1> Eigenstate: $IDXTITLE$ mailing list</h1></header>
+   <nav>
+    <ul>
+        <li> <a href="/">Home</a> </li>
+        <li> <a href="..">List index</a> </li>
+        <li> <a href="$TIDXFNAME$#$MSGNUM$">Thread index</a> </li>
+        <li> <a href="$IDXFNAME$#$MSGNUM$">Date index</a> </li>
+    </ul>
+  </nav>
+  <article>
+<h2>Date Index</h2>
 <ul>
 </LISTBEGIN>
 
@@ -150,10 +140,12 @@
 
 <LISTEND>
 </ul>
-</div>
-   <!-- FIXME <address>Archive administrator: postmaster@mlmmj-webarchiver</address> -->
-  </div>
- </div>
+  </article>
+  <footer>
+    Here's a footer. Isn't that neat?
+  </footer>
+</body>
+</html>
 </LISTEND>
 
 
@@ -178,9 +170,9 @@
    <nav>
     <ul>
         <li> <a href="/">Home</a> </li>
-        <li> <a href="..">Date index</a> </li>
+        <li> <a href="..">List index</a> </li>
         <li> <a href="$TIDXFNAME$#$MSGNUM$">Thread index</a> </li>
-        <li> <a href="$IDXFNAME$#$MSGNUM$">date index</a> </li>
+        <li> <a href="$IDXFNAME$#$MSGNUM$">Date index</a> </li>
     </ul>
   </nav>
   <article>
@@ -196,7 +188,6 @@
   <footer>
    <address>Archive administrator: [email protected]</address>
   </footer>
-</body>
 </TFOOT>
  
 
--- a/mkarchive.py
+++ b/mkarchive.py
@@ -66,6 +66,12 @@
                </head>
             <body>
               <header><h1>Eigenstate: %s list archives</h1></header>
+                <nav>
+                  <a href="/">Home</a><br>
+                  <ul>
+                    <li> <a href="/lists" > Mailing Lists/ </a> </li>
+                  </ul>
+                </nav>
               <article><ul>""" % (lst, lst))
         for d in os.listdir(listdir):
             if os.path.isdir(os.path.join(listdir, d)):