Added a links section
This commit is contained in:
		
							parent
							
								
									0a0c5f9acf
								
							
						
					
					
						commit
						b20a1e836a
					
				
							
								
								
									
										10
									
								
								layouts/partials/sidebar-items/links.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								layouts/partials/sidebar-items/links.html
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | ||||||
|  | <div class="sidebar-item"> | ||||||
|  |     <header> | ||||||
|  |         <h1>{{ .title }}</h1> | ||||||
|  |     </header> | ||||||
|  |     <ul class="blogroll"> | ||||||
|  |         {{ range .links }} | ||||||
|  |             <li><a href="{{ .url }}">{{ .name }}: <span>{{ (urls.Parse .url).Hostname }}</span></a></li> | ||||||
|  |         {{ end }} | ||||||
|  |     </ul> | ||||||
|  | </div> | ||||||
|  | @ -9,4 +9,6 @@ | ||||||
|             <p>This is some more stuff that goes here.</p> |             <p>This is some more stuff that goes here.</p> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|  |      | ||||||
|  |     {{ partial "sidebar-items/links.html" (dict "title" "Books" "links" (index .Site.Data.blogrolls "books-that-are-cool"))}} | ||||||
| </div> | </div> | ||||||
		Loading…
	
		Reference in a new issue