Moved sidebar partials into a separate directoy
This commit is contained in:
		
							parent
							
								
									1c22ec6571
								
							
						
					
					
						commit
						6cc83333f4
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| .DS_Store | ||||
|  | @ -1,29 +0,0 @@ | |||
| {{ define "main" }} | ||||
| <div class="page"> | ||||
| 
 | ||||
|   {{ if templates.Exists "partials/microhook-before-page-content.html" }} | ||||
|   {{ partial "microhook-before-page-content.html" . }} | ||||
|   {{ end }} | ||||
| 
 | ||||
|   {{ if .Title }} | ||||
|   <h2 class="p-name">{{ .Title }}</h2> | ||||
|   {{ end }} | ||||
| 
 | ||||
|   {{ if .Params.reply_to_url }} <a href="{{ .Permalink }}" class="post-date u-url"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> ∞</a> | ||||
|   <div class="reply-to"> Replying to: {{ if eq .Params.reply_to_hostname "micro.blog" }} <a href="{{ .Params.reply_to_url }}" class="u-in-reply-to">@{{ .Params.reply_to_username }}</a> {{ else }} <a href="{{ .Params.reply_to_url }}" class="u-in-reply-to">{{ .Params.reply_to_hostname }}</a> {{ end }} </div> {{ end }} | ||||
| 
 | ||||
|   <article class="post-content"> | ||||
|     {{ .Content }} | ||||
|   </article> | ||||
| 
 | ||||
|   {{ if templates.Exists "partials/microhook-after-page-content.html" }} | ||||
|   {{ partial "microhook-after-page-content.html" . }} | ||||
|   {{ end }} | ||||
| 
 | ||||
| </div> | ||||
| 
 | ||||
| {{ if templates.Exists "partials/microhook-after-page.html" }} | ||||
| {{ partial "microhook-after-page.html" . }} | ||||
| {{ end }} | ||||
| 
 | ||||
| {{ end }} | ||||
|  | @ -1 +1 @@ | |||
| {{ partial "sidebar.html" . }} | ||||
| {{ partial "sidebar-for-tiny-theme/sidebar.html" . }} | ||||
							
								
								
									
										7
									
								
								layouts/partials/sidebar-for-tiny-theme/sidebar.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								layouts/partials/sidebar-for-tiny-theme/sidebar.html
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| <div class="sidebar"> | ||||
|     {{ if templates.Exists "partials/sidebar.html" }} | ||||
|     {{ partial "microhook-after-page-content.html" . }} | ||||
|     {{ else }}     | ||||
|     {{ partial "sidebar-for-tiny-theme/recommendations.html" . }} | ||||
|     {{ end }} | ||||
| </div> | ||||
|  | @ -1,14 +0,0 @@ | |||
| <div class="sidebar"> | ||||
|     {{ partial "sidebar-items/recommendations.html" . }} | ||||
|      | ||||
|     <div class="sidebar-item"> | ||||
|         <header> | ||||
|             <h1>About</h1> | ||||
|         </header> | ||||
|         <div> | ||||
|             <p>This is some more stuff that goes here.</p> | ||||
|         </div> | ||||
|     </div> | ||||
|      | ||||
|     {{ partial "sidebar-items/links.html" (dict "title" "Books" "links" (index .Site.Data.blogrolls "books-that-are-cool"))}} | ||||
| </div> | ||||
		Loading…
	
		Reference in a new issue