I have a website using the Headline theme. (www.ecodisciple.com). The “Latest” section on the home page does not load the latest posts, and I can’t figure out why since it is supposed to do that by default. However, ideally I would just like to not have the Latest section at all, but I haven’t been able to figure out how to make that happen, either. Any help would be appreciated. Currently I just have an empty “Latest” section, which doesn’t look great. Thanks.
Do you have a routes.yaml file? (/ghost -settings -labs to download it.)
Yes. It’s as follows:
routes:
/:
data: page.home
template: home
collections:
/blog/:
permalink: /blog/{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
Bingo. You have your / route defined as only having the data from the page with the slug home. That removes any posts that would otherwise live at the / route, so there’s nothing to go into ‘latest’.
(The rest of the sections are separately pulled from the CMS, which is why they still work.)
So… do you want to remove the “Latest” label, or have the latest section populate?
Oh! Interesting!
If I could remove the “latest” label that would be ideal because I’m using the next section as a welcome section. But understanding why it isn’t populating is also helpful.
Thank you!
in code injection (head, ideally)
section.gh-topic.gh-topic-grid:first-child {
display: none;
}
That worked perfectly. Thank you very much.