]> Pileus Git - site/blobdiff - theme/html.ct
Support submenus
[site] / theme / html.ct
index 244375ee84fe2bca585e4cbc7a33138dd1a16d14..0a2d2e3b55038fe98e501e17f1b6c1abc6ef80f7 100644 (file)
@@ -6,8 +6,20 @@ Content-Type: text/html;charset=UTF-8
 
 <% } %>
 
-<% void print_link(char *path, char *name, int cur) { %>
-       <a href="<% href(path); %>"<% if (cur) { %> class="cur"<% } %>><%= name %></a>
+<% void print_menu_start(void) { %>
+       <div class="nav">
+<% } %>
+
+<% void print_menu_end(void) { %>
+       </div>
+<% } %>
+
+<% void print_link(char *path, char *name, int cur, int dir) { %>
+       <a href="<% href(path); %>"<%
+               if (cur) { %> class="cur"<% }
+       %>><%= name %><%
+               if (dir > 1) { %>/<% }
+       %></a>
 <% } %>
 
 <% void print_page(page_t *page, menu_t *menu) { %>