Ideas to adjust Headline "Latest" section/home page

Hi all … looking for an efficient way to add a touch of control to the Headline home page:

– Be able to use a tag (or internal tags?) to specify what shows up first under what’s currently called “LATEST” that’s not simply by post date. (Maybe renamed “UP FRONT” or similar.)

–Use a tag or internal tag to create a second section called “FEATURED” or similar that features a fixed number of posts from across other tag sections. (Maybe this can be done by assigning secondary tags to posts? Though don’t want a “SEE MORE” link to a tag collection/section.)

The goal is to continue to feature a post of choice as the first one on desktop and mobile even if newer posts have been added. So, in our use case, might not want a new podcast post or lesser post/content to take over the prime spot from a big feature story that we want to leave up there. It would essentially work the same way Headline uses tags to create sections, but it would be for the top section, which might be renamed “UP FRONT” or something.

Thanks from a theme-editing newbie!

The top section of the headline homepage respects routes.yaml, so if you prefer to have something else in that top section, you can write a routes.yaml file that makes that happen. :) So, for example, you could use the featured posts slider and make your routes.yaml something like this:
(partial file shown)

collections:
  /:
    order: featured desc, published_at desc
    permalink: /{slug}/
    template: index

That’ll cause all the featured posts to pop to the top, sorted in order of date if there are more than will fit in the section, and pulling non-featured posts as needed to fill it.

1 Like