| 
									
										
										
										
											2015-07-27 23:39:47 -07:00
										 |  |  | - var secondaryPath = public.docs[current.path[1]][current.path[2]][current.path[3]] | 
					
						
							| 
									
										
										
										
											2015-04-26 08:01:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | if secondaryPath | 
					
						
							| 
									
										
										
										
											2015-07-27 23:39:47 -07:00
										 |  |  |   - var data = secondaryPath._data | 
					
						
							|  |  |  |   - var listType = data._listtype | 
					
						
							|  |  |  |   - var ordered = listType == "ordered" ? "is-ordered" : "" | 
					
						
							|  |  |  |   - var items = listType == 'api' ? secondaryPath : data | 
					
						
							|  |  |  |   - var number = 1 | 
					
						
							| 
									
										
										
										
											2015-04-26 08:01:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   //SECONDARY NAVIGATION | 
					
						
							|  |  |  |   ul(class="side-nav-secondary #{ordered}") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     for page, slug in items | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       // DEFAULT LIST VALUES | 
					
						
							| 
									
										
										
										
											2015-07-27 23:39:47 -07:00
										 |  |  |       - var selected =  current.path[4] == slug ? 'is-selected':'' | 
					
						
							|  |  |  |       - var name = page.title; | 
					
						
							|  |  |  |       - var path = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + slug + ".html" | 
					
						
							| 
									
										
										
										
											2015-04-26 08:01:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       if slug != "_listtype" && slug != 'index' && slug != '_contents' && slug != '_data' | 
					
						
							|  |  |  |         // API LIST VALUES | 
					
						
							|  |  |  |         if listType == 'api' | 
					
						
							| 
									
										
										
										
											2015-07-27 23:39:47 -07:00
										 |  |  |           - var name = public.docs[current.path[1]][current.path[2]][current.path[3]][slug]._data["index"]["title"] | 
					
						
							|  |  |  |           - var path = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + slug | 
					
						
							| 
									
										
										
										
											2015-04-26 08:01:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // ORDERED LIST VALUES | 
					
						
							|  |  |  |         if listType == 'ordered' | 
					
						
							| 
									
										
										
										
											2015-07-27 23:39:47 -07:00
										 |  |  |           - var num = number++ | 
					
						
							|  |  |  |           - var name = (listType == "ordered") ?  num + '. ' + page.title : page.title; | 
					
						
							| 
									
										
										
										
											2015-04-26 08:01:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         li(class="#{selected}") <a href="#{path}" md-button>#{name}</a> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       // TERTIARY NAVIGATION | 
					
						
							|  |  |  |       if selected | 
					
						
							|  |  |  |         != partial("_tertiary") |