Replies: 1 comment
-
Hi, sorry Translate :) To get links and display the featured image you need to use the {{url}} and {{featuredImage}} helpers. In your case instead of a custom post/page I would override index.hbs. This is a path I have followed several times to show featured posts in home. The new index.hbs will contain only the elements you are interested (eg. remove the filter and unused JS). For a more scalable solution you can add theme options that allow the default view with filter or the featured post view without filter. Unfortunately I don't know Mercury in detail and these are just general considerations. The error you are getting could also be due to the JS that handles the filter, check your browser console logs to find out more. |
Beta Was this translation helpful? Give feedback.
-
I need some help with figuring out how to add featured posts to a custom home page.
<section>...</section>
container as shown below.This works for listing the posts, but it only shows the header and excerpt, and no link or image. What I want is for the list t be shown as on the default homepage for the theme, as shown in the demo here, except I don't want the filter to be shown.
I figured I could just copy the code from
index.hbs
, but when I replace the<li>...</li>
in my code with the code fromindex.hbs
(shown below), I only get a spinning circle on that part of the page, as if it's stuck in an infinite loading loop. Can someone help me figure out what I'm doing wrong?Beta Was this translation helpful? Give feedback.
All reactions