Skip to content

Adding featured posts on custom home page #1764

Answered by gpsblues
Backspaze asked this question in Help
Discussion options

You must be logged in to vote

Hi,

I'm attaching two versions of the post-home.hbs file: one shows the full list of posts, and the other displays only the featured posts. Both versions work well on my Mercury test site, and I've set them as home pages successfully.

However, the preloader issue still occurs because the Isotope library isn't loaded in the footer. You'll notice that the tag filter doesn’t work on this page. The footer for the full post list isn't being recognized as an "index" for some reason.

To fix this in the footer.hbs file, you’ll need to update this line:

{{#is "index,tag,tags,author"}}
      <script defer src="{{js "isotope.pkgd.min.js"}}"></script>
      ...
{{/is}}

to:

{{#is "index,tag,tags,auth…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@Backspaze
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Backspaze
Comment options

@gpsblues
Comment options

@gpsblues
Comment options

Answer selected by Backspaze
@Backspaze
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants