]> Pileus Git - site/blobdiff - theme/html.ct
Support submenus
[site] / theme / html.ct
index 8493cd617e3214c511b540117c0ecbb91976d427..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) { %>
@@ -55,7 +67,7 @@ Content-Type: text/html;charset=UTF-8
                        <div class="bottom"></div>
                </div>
                <div class="footer">
-                       Copyright © 2012 pileus.org
+                       Copyright © 2013 pileus.org
                </div>
        </body>
 </html>