George S. Baugh 4 роки тому
батько
коміт
dadd8b99ba

+ 2 - 0
lib/Trog/Routes/HTML.pm

@@ -30,6 +30,7 @@ our $htmltitle     = 'title.tx';
 our $midtitle      = 'midtitle.tx';
 our $rightbar      = 'rightbar.tx';
 our $leftbar       = 'leftbar.tx';
+our $topbar        = 'topbar.tx';
 our $footbar       = 'footbar.tx';
 
 # Note to maintainers: never ever remove backends from this list.
@@ -229,6 +230,7 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
         midtitle       => _pick_processor("templates/$midtitle"  ,$processor,$t_processor)->render($midtitle,$query),
         rightbar       => _pick_processor("templates/$rightbar"  ,$processor,$t_processor)->render($rightbar,$query),
         leftbar        => _pick_processor("templates/$leftbar"   ,$processor,$t_processor)->render($leftbar,$query),
+        topbar         => _pick_processor("templates/$topbar"    ,$processor,$t_processor)->render($topbar,$query),
         footbar        => _pick_processor("templates/$footbar"   ,$processor,$t_processor)->render($footbar,$query),
         categories     => \@series,
         stylesheets    => \@styles,

+ 1 - 1
www/templates/categories.tx

@@ -1,3 +1,3 @@
-: for $categories -> $category { 
+: for $categories -> $category {
 <a href="<: $category.local_href :>"   title="<: $category.title :>" class="topbar"><: $category.title :></a>
 : }

+ 1 - 0
www/templates/index.tx

@@ -9,6 +9,7 @@
     <div id="righttitle" class="toplel">
         : include "categories.tx";
         <a href="/sitemap" title="Sitemap" class="topbar">🗺️</a>
+        <: $topbar | mark_raw :>
         <form action="<: $route :>" method="GET" class="ib">
             <input required type="search" class="coolbutton topform" name="like" autofocus></input>
             <input class="coolbutton topform" type="submit" value="🔎"></input>

+ 0 - 0
www/templates/topbar.tx