zachel
January 18, 2023, 7:19am
1
Apologies if this has been asked before, as I couldn’t find a topic for this.
I would like to display my blog posts on site root (/),
and have pages for projects
and about
, which shouldn’t be displayed as a blog post, but available at (/projects, /about).
How can I achieve this?
keats
January 18, 2023, 9:27am
2
You can mark your blog section as transparent
but the URLs will still contain /blog/
zachel
January 18, 2023, 10:59am
3
Ah, must’ve missed that while reading the docs.
With transparent = true
, I should be able to load the blog posts in site root, but when an user clicks on a post they would be on /blog/title
.
Did I got that right?
zachel
January 18, 2023, 2:23pm
5
Works like a charm, thanks for the help!
zachel
January 18, 2023, 4:05pm
6
Just noticed that this also displays projects
and about
as a blog post,
How can I prevent this from happening?
File tree below:
├── content
│ ├── _index.md
│ ├── about.md
│ ├── posts
│ │ ├── 2023-01-17-hello-blog.md
│ │ ├── 2023-01-18-multiple-posts.md
│ │ └── _index.md
│ └── projects.md
keats
January 18, 2023, 5:17pm
7
The easiest way is to make them sections so you end up with:
content/about/_index.md
content/projects/_index.md
content/posts/...