mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed recommended year format string for blog plugin
This commit is contained in:
parent
fe3226387e
commit
9de5885abe
@ -56,16 +56,16 @@
|
|||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"enum": [
|
"enum": [
|
||||||
"YYYY",
|
"yyyy",
|
||||||
"YYYY/MM",
|
"yyyy/MM",
|
||||||
"YYYY/MM/dd"
|
"yyyy/MM/dd"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": "YYYY"
|
"default": "yyyy"
|
||||||
},
|
},
|
||||||
"post_url_format": {
|
"post_url_format": {
|
||||||
"title": "Format string for post URLs",
|
"title": "Format string for post URLs",
|
||||||
@ -149,15 +149,15 @@
|
|||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"enum": [
|
"enum": [
|
||||||
"YYYY",
|
"yyyy",
|
||||||
"MMMM YYYY"
|
"MMMM yyyy"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": "YYYY"
|
"default": "yyyy"
|
||||||
},
|
},
|
||||||
"archive_url_date_format": {
|
"archive_url_date_format": {
|
||||||
"title": "Format string for archive dates in URLs",
|
"title": "Format string for archive dates in URLs",
|
||||||
@ -165,15 +165,15 @@
|
|||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"enum": [
|
"enum": [
|
||||||
"YYYY",
|
"yyyy",
|
||||||
"YYYY/MM"
|
"yyyy/MM"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": "YYYY"
|
"default": "yyyy"
|
||||||
},
|
},
|
||||||
"archive_url_format": {
|
"archive_url_format": {
|
||||||
"title": "Format string for archive URLs",
|
"title": "Format string for archive URLs",
|
||||||
|
@ -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 }
|
[`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
|
date format that is used in the URL of the post. The format string must
|
||||||
adhere to [Babel]'s [pattern syntax]. Some examples:
|
adhere to [Babel]'s [pattern syntax]. Some examples:
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ The following configuration options are available for posts:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- blog:
|
||||||
post_url_date_format: YYYY/MM/dd
|
post_url_date_format: yyyy/MM/dd
|
||||||
```
|
```
|
||||||
|
|
||||||
=== ":material-link: blog/2022/01/:material-dots-horizontal:/"
|
=== ":material-link: blog/2022/01/:material-dots-horizontal:/"
|
||||||
@ -190,7 +190,7 @@ The following configuration options are available for posts:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- blog:
|
||||||
post_url_date_format: YYYY/MM
|
post_url_date_format: yyyy/MM
|
||||||
```
|
```
|
||||||
|
|
||||||
=== ":material-link: blog/2022/:material-dots-horizontal:/"
|
=== ":material-link: blog/2022/:material-dots-horizontal:/"
|
||||||
@ -198,7 +198,7 @@ The following configuration options are available for posts:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- 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
|
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 }
|
[`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
|
format that is used when archive indexes are rendered. The format string
|
||||||
must adhere to [Babel]'s [pattern syntax]. Popular settings are:
|
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
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- blog:
|
||||||
archive_date_format: YYYY
|
archive_date_format: yyyy
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "January 2022"
|
=== "January 2022"
|
||||||
@ -385,12 +385,12 @@ The following configuration options are available for archive index generation:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- 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 }
|
[`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
|
format that is used in the archive index URL. The format string must adhere
|
||||||
to [Babel]'s [pattern syntax]. Some examples:
|
to [Babel]'s [pattern syntax]. Some examples:
|
||||||
|
|
||||||
@ -399,7 +399,7 @@ The following configuration options are available for archive index generation:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- blog:
|
||||||
archive_url_date_format: YYYY
|
archive_url_date_format: yyyy
|
||||||
```
|
```
|
||||||
|
|
||||||
=== ":material-link: blog/archive/2022/01/"
|
=== ":material-link: blog/archive/2022/01/"
|
||||||
@ -407,7 +407,7 @@ The following configuration options are available for archive index generation:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- blog:
|
- blog:
|
||||||
archive_url_date_format: YYYY/MM
|
archive_url_date_format: yyyy/MM
|
||||||
```
|
```
|
||||||
|
|
||||||
[`archive_url_format`](#+blog.archive_url_format){ #+blog.archive_url_format }
|
[`archive_url_format`](#+blog.archive_url_format){ #+blog.archive_url_format }
|
||||||
|
Loading…
Reference in New Issue
Block a user