user1878980
user1878980

Reputation: 521

Jekyll permalink doesn't work

I'm trying to add a new page to my jekyll site and I declare the permalink like this:

permalink: /new-page/

But the new page ends up in mydomain.com/pages/new-page/ instead of mydomain.com/new-page/

This worked before, it must have happened after some jekyll update.

Any idea what might be wrong?

Thanks in advance

Upvotes: 0

Views: 247

Answers (2)

Suriyaa
Suriyaa

Reputation: 2296

You must do it like this:

---
layout: default
title: Your website name
permalink: /about/
---

Upvotes: 1

user1878980
user1878980

Reputation: 521

Oh I found the problem. I had forgot the closing markdown dashes (---) after the permalink.

Upvotes: 0

Related Questions