Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Root Level Posts on Homepage

Started by Dan Hart 9 years ago · 2 replies · 894 views
9 years ago

I'm trying to return a list of posts/pages (much like blog list view) but I am running into an error and I feel like it might be due to how I have it setup. Right now I have "posts" at the root and I need to keep them that way so the url can be simple like "mywebsite.com/jeepwrangler".

I've tried grabbing the pages via a collection but no dice. Is it because I don't have them in a parent page/category like "cars" for example? And if a parent category is needed how can I still maintain that simple url?

Thanks!
Dan

9 years ago

@dan:
how can I still maintain that simple url?

You want to hide the home route in the URL, there is a setting in the Config for this toward the top of the page.

9 years ago

Andy, thanks for that! Turned out to be much easier than I thought! 🙂

👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by AH, 2 weeks ago
1 198 9 hours ago
Themes & Styling · by Bruno, 4 years ago
6 1350 9 hours ago
Themes & Styling · by TomW, 2 weeks ago
2 203 2 days ago
Themes & Styling · by themetman, 3 days ago
0 56 3 days ago
Themes & Styling · by FrViPofm, 2 months ago
4 668 1 month ago