From 9de5885abe1275f39e6c2251d2de6d233e432a71 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 22 Sep 2022 17:47:00 +0200 Subject: [PATCH] Fixed recommended year format string for blog plugin --- docs/schema/plugins/blog.json | 20 ++++++++++---------- docs/setup/setting-up-a-blog.md | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/schema/plugins/blog.json b/docs/schema/plugins/blog.json index 84f714f6f..97e75231b 100644 --- a/docs/schema/plugins/blog.json +++ b/docs/schema/plugins/blog.json @@ -56,16 +56,16 @@ "oneOf": [ { "enum": [ - "YYYY", - "YYYY/MM", - "YYYY/MM/dd" + "yyyy", + "yyyy/MM", + "yyyy/MM/dd" ] }, { "type": "string" } ], - "default": "YYYY" + "default": "yyyy" }, "post_url_format": { "title": "Format string for post URLs", @@ -149,15 +149,15 @@ "oneOf": [ { "enum": [ - "YYYY", - "MMMM YYYY" + "yyyy", + "MMMM yyyy" ] }, { "type": "string" } ], - "default": "YYYY" + "default": "yyyy" }, "archive_url_date_format": { "title": "Format string for archive dates in URLs", @@ -165,15 +165,15 @@ "oneOf": [ { "enum": [ - "YYYY", - "YYYY/MM" + "yyyy", + "yyyy/MM" ] }, { "type": "string" } ], - "default": "YYYY" + "default": "yyyy" }, "archive_url_format": { "title": "Format string for archive URLs", diff --git a/docs/setup/setting-up-a-blog.md b/docs/setup/setting-up-a-blog.md index 5bb1e305b..9e0840279 100644 --- a/docs/setup/setting-up-a-blog.md +++ b/docs/setup/setting-up-a-blog.md @@ -173,7 +173,7 @@ The following configuration options are available for posts: [`post_url_date_format`](#+blog.post_url_date_format){ #+blog.post_url_date_format } -: :octicons-milestone-24: Default: `YYYY/MM/dd` – This option specifies the +: :octicons-milestone-24: Default: `yyyy/MM/dd` – This option specifies the date format that is used in the URL of the post. The format string must adhere to [Babel]'s [pattern syntax]. Some examples: @@ -182,7 +182,7 @@ The following configuration options are available for posts: ``` yaml plugins: - blog: - post_url_date_format: YYYY/MM/dd + post_url_date_format: yyyy/MM/dd ``` === ":material-link: blog/2022/01/:material-dots-horizontal:/" @@ -190,7 +190,7 @@ The following configuration options are available for posts: ``` yaml plugins: - blog: - post_url_date_format: YYYY/MM + post_url_date_format: yyyy/MM ``` === ":material-link: blog/2022/:material-dots-horizontal:/" @@ -198,7 +198,7 @@ The following configuration options are available for posts: ``` yaml plugins: - blog: - post_url_date_format: YYYY + post_url_date_format: yyyy ``` If you want to exclude the date altogether, e.g. when your blog features @@ -368,7 +368,7 @@ The following configuration options are available for archive index generation: [`archive_date_format`](#+blog.archive_date_format){ #+blog.archive_date_format } -: :octicons-milestone-24: Default: `YYYY` – This option specifies the date +: :octicons-milestone-24: Default: `yyyy` – This option specifies the date format that is used when archive indexes are rendered. The format string must adhere to [Babel]'s [pattern syntax]. Popular settings are: @@ -377,7 +377,7 @@ The following configuration options are available for archive index generation: ``` yaml plugins: - blog: - archive_date_format: YYYY + archive_date_format: yyyy ``` === "January 2022" @@ -385,12 +385,12 @@ The following configuration options are available for archive index generation: ``` yaml plugins: - blog: - archive_date_format: MMMM YYYY + archive_date_format: MMMM yyyy ``` [`archive_url_date_format`](#+blog.archive_url_date_format){ #+blog.archive_url_date_format } -: :octicons-milestone-24: Default: `YYYY` – This option specifies the date +: :octicons-milestone-24: Default: `yyyy` – This option specifies the date format that is used in the archive index URL. The format string must adhere to [Babel]'s [pattern syntax]. Some examples: @@ -399,7 +399,7 @@ The following configuration options are available for archive index generation: ``` yaml plugins: - blog: - archive_url_date_format: YYYY + archive_url_date_format: yyyy ``` === ":material-link: blog/archive/2022/01/" @@ -407,7 +407,7 @@ The following configuration options are available for archive index generation: ``` yaml plugins: - blog: - archive_url_date_format: YYYY/MM + archive_url_date_format: yyyy/MM ``` [`archive_url_format`](#+blog.archive_url_format){ #+blog.archive_url_format }