Commits

shl...@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed 5e4d908

Added the site-map.

  • Participants
  • Parent commits d403d14

Comments (0)

Files changed (4)

 * Add a nice news items summary news box at the top with the site news. 
   Also create an RSS feed for them.
 
-* Create a site-map page.
-
 * Change the huge Software Patents button to the one at thewml.org
     - Add the vote libertarian page and button.
+
+* Add more essays I wrote to the Essays Index.

File common/style.css

     width : 20%;
     padding-right : 1em;
     padding-top : 0.5em;
+    padding-left : 0.2em;
 }
 .navbar ul
 {

File t2/site-map/index.html.wml

+#include '../template.wml'
+
+<subject "Site Map" />
+
+<div class="sitemap">
+<:{
+my $site_map = $nav_bar->gen_site_map();
+print $site_map;
+}:>
+</div>
+

File template.wml

 $filename =~ s!index\.html$!!;
 $filename = "/$filename";
 
-my $nav_bar = Shlomif::NavMenu->new(
+use vars qw($nav_bar);
+
+$nav_bar = Shlomif::NavMenu->new(
     'path_info' => $filename,
     'current_host' => "$(SERVER)",
     MyNavData::get_params(),
    print "<div class=\"center\">\n$nav_buttons_html\n</div>";
 }:>    
 <:{ print join("\n", @$nav_html); }:>
+<p>
+<a href="<rellink host="t2" url="site-map/" />"><b>Site Map</b></a>
+</p>
 
 <validhtml />