Commits

Shlomi Fish  committed 380cee4

Fix the breadcrumbs trail in the facts pages.

It was an expansion/main-nav-menu problem.

  • Participants
  • Parent commits 50588f2

Comments (0)

Files changed (2)

File bin/Test/render-breadcrumbs-trail.pl

 use CGI qw();
 use MyNavLinks;
 
-my $my_THE_filename = "puzzles/situation/book-under-rock.html";
+# my $my_THE_filename = "puzzles/situation/book-under-rock.html";
+my $my_THE_filename = "humour/bits/facts/Buffy/index.html";
 {
 my $filename = $my_THE_filename;
 $filename =~ s{index\.html$}{};
         { $render_leading_path_component->($_) }
         @$total_leading_path
         ));
+
+    print "\n";

File lib/MyNavData.pm

 
 my @personal_expand = (expand => { bool => 1, capt => 0,},);
 my @humour_expand = (re => q{^(?:humour/|(?:humour|wysiwyt|wonderous).html)});
+my @humour_aphorisms_expand = (re => q{^(?:humour/(?:aphorisms/|fortunes/|bits/facts/)|(?:humour).html)});
 
 my %reduced_sub_trees =
 (
             {
                 text => "Aphorisms and Quotes",
                 url => "humour/aphorisms/",
-                expand => { @humour_expand, capt => 0,},
+                expand => { @humour_aphorisms_expand, capt => 0,},
                 subs =>
                 [
                     {
                         title => "Collection of Files for Input to the UNIX ‘fortune’ Program",
                         url => "humour/fortunes/",
                     },
+                    {
+                        text => "Factoids",
+                        title => "“Facts” about Chuck Norris and other things",
+                        url => "humour/bits/facts/",
+                        expand => { re => "^humour/bits/facts/", },
+                    },
                 ],
             },
             {
                 text => "Small Scale",
                 url => "humour/bits/",
-                expand => { re => "^humour/bits/", },
+                expand => { re => "^humour/bits/(?!facts/)", },
                 title => "Small Scale Funny Works of Mine",
-                subs =>
-                [
-                    {
-                        text => "Factoids",
-                        title => "“Facts” about Chuck Norris and other things",
-                        url => "humour/bits/facts/",
-                    },
-                ],
             },
             {
                 text => "By Others",