eliottvincent/bay

Use permalink instead of slug

Opened this issue · 1 comments

It seems weird in the theme and docs to use slug.

https://github.com/eliottvincent/bay/search?q=slug&type=

I don't know if it actually does what you intend.

Jekyll has a standard already called permalink.

e.g. this will make blog.md be outputted as /blog/index.html so you can link to it as /blog/

---
title: Blog
permalink: /blog/
---

Note use of trailing slash.

And linking to that page:

See the [Blog]({% link blog.md %}) page

Or Jekyll 3

See the [Blog]({{ site.baseurl }}{% link blog.md %}) page

That will become <a href="/blog/">... (or "/bay/blog/") because Jekyll understands permalink, but not slug.

Further there is no need to set a slug or permalink on your homepage as Jekyll already knows that index.md should be /.

Hey @ConsciousCoder1 , this is definitely unrelated 😉
You sent me an email, I'll answer it, no worries. Do not jump on other's issues like that.