How to customize Jekyll's url?

alexyz78 picture alexyz78 · Dec 29, 2011 · Viewed 16.7k times · Source

I would like to use Jekyll to create a site. not a blog. Is there a way to avoid to have the creation date specified in the url and in the page's file name?

I think that the idea behind Jekyll is brilliant, but it seems too tied to blog generation content while it could be useful also in a more general use case.

Answer

joshuahornby10 picture joshuahornby10 · Nov 27, 2012

In the _config file you can change the permalink to anything you like, for example mine is

permalink: /blog/:title

As for the date you can choose your own date using the YAML front matter, again in mine i have

title: example
date: you can pick what ever date you want