JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
hide whole menu bar if it's empty
authorJason Woofenden <jason@jasonwoof.com>
Tue, 22 Sep 2015 00:11:27 +0000 (20:11 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 22 Sep 2015 00:11:27 +0000 (20:11 -0400)
template.html

index 89c3cb6..f9c0702 100644 (file)
                <header>
                        header image here
                </header>
                <header>
                        header image here
                </header>
-               <nav id="site-nav">
-                       <ul><!--~$navbar_items {~-->
-                               <li><a href="~filename~">~title html~</a></li><!--~}~-->
-                       </ul>
-               </nav>
+               <!--~$navbar_items once_if {~-->
+                       <nav id="site-nav">
+                               <ul><!--~$navbar_items {~-->
+                                       <li><a href="~filename~">~title html~</a></li><!--~}~-->
+                               </ul>
+                       </nav>
+               <!--~}~-->
 
                <div id="main-body">
                        <!--~$admin_links {~-->
 
                <div id="main-body">
                        <!--~$admin_links {~-->