1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +01:00

Fixed recommended year format string for blog plugin

This commit is contained in:
squidfunk 2022-09-22 17:47:00 +02:00
parent fe3226387e
commit 9de5885abe
2 changed files with 20 additions and 20 deletions

View File

@ -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",

View File

@ -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 }