Creating Collections on Homepage

Hi, hoping someone can help!

I’m use the Edtion theme. My homepage has a long list of blog posts. I’ve set up tags for these, with the tag name in the primary menu for navigation - but what I want is to remove the blog post list and set up ‘collections’ on the homepage. According to Ghost, this is possible. I’ve followed the guidance but this does not work.

This is what I’ve updated my yaml file to look like.

What’s working as expected: the posts tagged with ‘van-life’ are no longer on the posts list on the homepage.
What’s not working as expected: I’m not seeing a van life collections on the homepage, as per the Ghost guidance. I feel like I’ve missed a step somewhere, yet I’ve followed the Ghost guidance completely.

Have I missed something?

Many thanks :-)

I think you’ve misunderstood something. :slight_smile:

Collections don’t automagically appears on the homepage. What appears on the homepage (assuming the theme shows it) is what’s in the /: collection. The van-life collection is at yoursite/van-life/

If you’re able to edit the theme (not on a starter plan) and willing to get your hands dirty, you could pretty easily add another section to the homepage (which will be at home.hbs, or index.hbs if there’s no home.hbs) that duplicates the section that is putting the first grouping of posts there and wraps it in something like:

{{#get "posts" filter="tag:van-life" limit=10}}

... foreach and rendering of posts, which might be happening in a {{> partial}}

{{/get}}

If you can’t edit the theme, you might have a look at headline, which has the desired behavior built in. (You’ll configure which tags you want in /ghost > settings > theme)

Thanks Cathy! Yeah that’s what I couldn’t wrap my head around - the Ghost tutorial with this section seems to imply that all you need to do create this navigation is create a ‘collection’ :face_with_diagonal_mouth:. I’ve managed to create the collection, like you say at mysite/van-life - but that’s not the full picture sadly :sweat_smile:.

Now to try to edit my theme…!

Thanks again for your response :grinning:

A collection (in Ghost) is the index page like /american or /french that collects posts together. Unfortunately, that tutorial never shows you how to make the homepage look like that – that’s a bit confusing, huh?

Holler if you get stuck with theme editing! And if you’re a Windows user, my best tip is to install WSL2 (Ubuntu 22) and then follow the Linux directions, because the whole dev team is on Macs, and so sometimes Windows-specific issues are hard to debug and fix. And the internet and Google and AI are just plain better at helping with Linux issues. (I’m a Windows user, and my development process got 100% better when I switched to running in WSL2.)

1 Like