I’m trying to show pages on my homepage, here’s what I have so far:
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#is "home"}}
{{#if @site.description}}
<header class="page-head">
<h2 class="page-head-title">{{@site.description}}</h2>
</header>
{{/if}}
{{/is}}
{{#get "posts" filter="page:true"}}
{{#foreach posts}}
{{title}}
<p>{{excerpt words="33"}}</p>
{{/foreach}}
{{/get}}
However nothing is displayed on my homepage.
Reason for using pages is I want to display all posts which contain a certain tag on the page, and display this page on my homepage for navigation (similar to wordpress categories).
Hi @lmac. Would I be right in saying that you want to only show posts from a certain category on the home page? If so you could leverage the routes file and collections which would save you from making modifications to the theme you’re using, there’s an example over on our docs: