Is it possible to stop Jekyll from creating a page for each post

I use Jekyll for a blog / portfolio site. I have several posts that represent entries in a portfolio, and several blog entries.

I can use portfolio entry entries to create a portfolio page (www.alexmarchant.com/portfolio), but Jekyll still creates a permalink for each entry in the portfolio. Is there any way to disable this?

I tried the following in the YAML section of front-matter messages:

  • Permanent link: none
  • permalink: false

Nothing works.

+6
source share
1 answer

I found one to hack what you want: when you set the permalink as an existing page, then it will not be generated (the original page will be there), but it will still be available as a / page message in Jekyll.

So, if you had an index page for a portfolio with the following URL: /portfolio/index.html , and then in your /_posts/ you would have entries that would have this in the front YAML case: permalink: /portfolio/index.html , then these pages will not be generated.

+2
source

All Articles