mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	Merge pull request #147 from novaugust/page-fix
Move page #post helper to encapsulate image references
This commit is contained in:
		
							
								
								
									
										6
									
								
								page.hbs
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								page.hbs
									
									
									
									
									
								
							@@ -3,6 +3,9 @@
 | 
				
			|||||||
{{! This is a page template. A page outputs content just like any other post, and has all the same
 | 
					{{! This is a page template. A page outputs content just like any other post, and has all the same
 | 
				
			||||||
    attributes by default, but you can also customise it to behave differently if you prefer. }}
 | 
					    attributes by default, but you can also customise it to behave differently if you prefer. }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{! Everything inside the #post tags pulls data from the page }}
 | 
				
			||||||
 | 
					{{#post}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
 | 
					<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
 | 
				
			||||||
    <nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
 | 
					    <nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
 | 
				
			||||||
        <a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
 | 
					        <a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
 | 
				
			||||||
@@ -14,7 +17,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <article class="{{post_class}}">
 | 
					    <article class="{{post_class}}">
 | 
				
			||||||
    {{! Everything inside the #post tags pulls data from the post }}
 | 
					    {{! Everything inside the #post tags pulls data from the post }}
 | 
				
			||||||
    {{#post}}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <header class="post-header">
 | 
					        <header class="post-header">
 | 
				
			||||||
            <h1 class="post-title">{{title}}</h1>
 | 
					            <h1 class="post-title">{{title}}</h1>
 | 
				
			||||||
@@ -24,7 +26,7 @@
 | 
				
			|||||||
            {{content}}
 | 
					            {{content}}
 | 
				
			||||||
        </section>
 | 
					        </section>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{/post}}
 | 
					 | 
				
			||||||
    </article>
 | 
					    </article>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</main>
 | 
					</main>
 | 
				
			||||||
 | 
					{{/post}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user