Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Root Level Posts on Homepage

Started by Dan Hart 9 years ago · 2 replies · 548 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 Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 44 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago