diff --git a/public/admin/config.yml b/public/admin/config.yml index cc0f558..6763060 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -10,7 +10,7 @@ collections: label: "Blog" # Used in the UI folder: "src/posts" # The path to the folder where the documents are stored create: true # Allow users to create new documents in this collection - slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md fields: # The fields for each document, usually in front matter - { name: "title", label: "Title" } - { name: "description", label: "Description" } diff --git a/public/admin/index.html b/public/admin/index.html index d3e0211..ed1a129 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -11,6 +11,9 @@ + diff --git a/src/_includes/layouts/base.ejs b/src/_includes/layouts/base.ejs index d6b1fec..18dcfd9 100644 --- a/src/_includes/layouts/base.ejs +++ b/src/_includes/layouts/base.ejs @@ -48,6 +48,17 @@ <% } %> <%- include('webpack.ejs') %> + diff --git a/src/posts/2020-02-02-my-first-post.md b/src/posts/2020-02-02-my-first-post.md index 19decea..c420b3e 100644 --- a/src/posts/2020-02-02-my-first-post.md +++ b/src/posts/2020-02-02-my-first-post.md @@ -1,7 +1,7 @@ --- title: 'My first post' description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. -date: 2020-02-02 00:00:00 +date: 2020-02-02T00:00:00Z --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. diff --git a/src/posts/2020-03-03-my-second-post.md b/src/posts/2020-03-03-my-second-post.md index 3539e85..c51c5f1 100644 --- a/src/posts/2020-03-03-my-second-post.md +++ b/src/posts/2020-03-03-my-second-post.md @@ -1,7 +1,7 @@ --- title: 'My second post' description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. -date: 2020-03-03 00:00:00 +date: 2020-03-03T00:00:00Z --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. diff --git a/src/posts/2020-05-05-eleventy-starter-boilerplate-presentation.md b/src/posts/2020-05-05-eleventy-starter-boilerplate-presentation.md index 8f60bd6..4a705e6 100644 --- a/src/posts/2020-05-05-eleventy-starter-boilerplate-presentation.md +++ b/src/posts/2020-05-05-eleventy-starter-boilerplate-presentation.md @@ -1,7 +1,7 @@ --- title: 'Eleventy Starter Boilerplate Presentation' description: Everything you need to use this Eleventy Boilerplate template -date: 2020-05-05 00:00:00 +date: 2020-05-05T00:00:00Z --- [![Eleventy starter boilerplate banner](/assets/images/posts/eleventy-js-starter-boilerplate.png)](https://creativedesignsguru.com/demo/Eleventy-Starter-Boilerplate/) diff --git a/src/posts/2020-06-06-my-third-post.md b/src/posts/2020-06-06-my-third-post.md index 51132b2..7ae06d9 100644 --- a/src/posts/2020-06-06-my-third-post.md +++ b/src/posts/2020-06-06-my-third-post.md @@ -1,7 +1,7 @@ --- title: 'My third post' description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. -date: 2020-06-06 00:00:00 +date: 2020-06-06T00:00:00Z --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. diff --git a/src/posts/2020-07-07-my-forth-post.md b/src/posts/2020-07-07-my-forth-post.md index ed017da..d686941 100644 --- a/src/posts/2020-07-07-my-forth-post.md +++ b/src/posts/2020-07-07-my-forth-post.md @@ -1,7 +1,7 @@ --- title: 'My forth post' description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. -date: 2020-07-07 00:00:00 +date: 2020-07-07T00:00:00Z --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. diff --git a/src/posts/2020-08-08-my-fifth-post.md b/src/posts/2020-08-08-my-fifth-post.md index 2b9acc5..90e499d 100644 --- a/src/posts/2020-08-08-my-fifth-post.md +++ b/src/posts/2020-08-08-my-fifth-post.md @@ -1,7 +1,7 @@ --- title: 'My fifth post' description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. -date: 2020-08-08 00:00:00 +date: 2020-08-08T00:00:00Z --- Lorem ipsum dolor sit amet, consectetur adipiscing elit.