mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	closes #1 - removing featured
- changed post.hbs to list-post.hbs and refactored code - changed featured.hbs to full-post.hbs and refactored code - index.hbs now selects first post and extends full-post then list-post on remaining posts - single.hbs now extends full-post
This commit is contained in:
		
							
								
								
									
										18
									
								
								index.hbs
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								index.hbs
									
									
									
									
									
								
							@@ -1,13 +1,15 @@
 | 
			
		||||
{{!< default}}
 | 
			
		||||
<section class="content">
 | 
			
		||||
    <ul class="hfeed">
 | 
			
		||||
        {{#features}}
 | 
			
		||||
            <li class="featured">
 | 
			
		||||
                {{> featured}}
 | 
			
		||||
            </li>
 | 
			
		||||
        {{/features}}
 | 
			
		||||
        {{#posts}}
 | 
			
		||||
            {{> post}}
 | 
			
		||||
        {{/posts}}
 | 
			
		||||
        {{#foreach posts}}
 | 
			
		||||
            {{#if @first}}
 | 
			
		||||
                <li class="featured">
 | 
			
		||||
                    {{> full-post}}
 | 
			
		||||
                </li>
 | 
			
		||||
            {{else}}
 | 
			
		||||
                {{> list-post}}
 | 
			
		||||
            {{/if}}
 | 
			
		||||
        {{/foreach}}
 | 
			
		||||
    </ul>
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{{!< default}}
 | 
			
		||||
<section class="content">
 | 
			
		||||
    {{#post}}
 | 
			
		||||
        {{> featured}}
 | 
			
		||||
        {{> full-post}}
 | 
			
		||||
    {{/post}}
 | 
			
		||||
</section>
 | 
			
		||||
		Reference in New Issue
	
	Block a user