You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Jekyll Archives
1
+
## About Jekyll Archives
2
2
3
3
Automatically generate post archives by dates, tags, and categories.
4
4
@@ -20,6 +20,15 @@ plugins:
20
20
⚠️ If you are using Jekyll < 3.5.0, use the `gems` key instead of `plugins`.
21
21
22
22
### Configuration
23
-
Archives can be configured by using the `jekyll-archives` key in the Jekyll configuration (`_config.yml`) file. See the [Configuration](docs/configuration.md) page for a full list of configuration options.
24
23
25
-
All archives are rendered with specific layouts using certain metadata available to the archive page. The [Layouts](docs/layouts.md) page will show you how to create a layout for use with Archives.
24
+
Archives can be configured by using the `jekyll-archives` key in the Jekyll configuration (`_config.yml`) file. See the [Configuration](configuration.md) page for a full list of configuration options.
25
+
26
+
All archives are rendered with specific layouts using certain metadata available to the archive page. The [Layouts](layouts.md) page will show you how to create a layout for use with Archives.
Copy file name to clipboardExpand all lines: docs/configuration.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
-
# Configuration
1
+
##Configuration
2
2
3
3
Archives configuration is done in the site's `_config.yml` file, under the `jekyll-archives` key.
4
4
5
5
### Default configuration
6
+
6
7
```yml
7
8
jekyll-archives:
8
9
enabled: []
@@ -28,13 +29,17 @@ jekyll-archives:
28
29
---
29
30
30
31
#### Enabled archives
32
+
31
33
| Key | Value type | Values |
32
34
|-----------|-----------------|--------|
33
35
| `enabled` | String or Array | `'all'` or an array of any combination of `year`, `month`, `day`, `categories`, `tags` |
34
36
35
37
##### Description
38
+
36
39
This option sets which types of archives will be created. Must be set to an array of enabled archive types, or the string 'all' (to enable all archives).
40
+
37
41
##### Sample values
42
+
38
43
```yml
39
44
enabled: all
40
45
enabled:
@@ -48,13 +53,17 @@ enabled:
48
53
---
49
54
50
55
#### Default layout
56
+
51
57
| Key | Value type | Values |
52
58
|----------|------------|--------|
53
59
| `layout` | String | The layout name of the default archive layout |
54
60
55
61
##### Description
62
+
56
63
Sets the default layout to use if no type-specific layout (see [Type-specific layouts](#type-specific-layouts) below) for an archive is specified.
| `layouts` | Map, String → String | A map of layout type (`year`, `month`, `day`, `category`, `tag`) to its archive name. |
69
79
70
80
##### Description
81
+
71
82
Maps archive types to the layout they will be rendered in. Not all types need to be specified; those without a specific layout will fall back to the default layout.
| `permalinks` | Map, String → String | A map of layout type (`year`, `month`, `day`, `category`, `tag`) to its permalink format. |
87
101
88
102
##### Description
103
+
89
104
Maps archive types to the permalink format used for archive pages. The permalink style is the same as regular Jekyll posts and pages, but with different variables.
90
105
91
106
These variables are:
107
+
92
108
* `:year` for year archives
93
109
* `:year` and `:month` for month archives
94
110
* `:year`, `:month`, and `:day` for day archives
95
111
* `:name` for category and tag archives
96
112
97
113
*Note:* trailing slashes are required to create the archive as an `index.html` file of a directory.
Copy file name to clipboardExpand all lines: docs/getting-started.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Getting started
1
+
##Getting started
2
2
3
3
### Installation
4
4
@@ -11,6 +11,7 @@ gems:
11
11
```
12
12
13
13
### Configuration
14
-
Archives can be configured by using the `jekyll-archives` key in the Jekyll configuration (`_config.yml`) file. See the [Configuration](./configuration.md) page for a full list of configuration options.
15
14
16
-
All archives are rendered with specific layouts using certain metadata available to the archive page. The [Layouts](./layouts.md) page will show you how to create a layout for use with Archives.
15
+
Archives can be configured by using the `jekyll-archives` key in the Jekyll configuration (`_config.yml`) file. See the [Configuration](configuration.md) page for a full list of configuration options.
16
+
17
+
All archives are rendered with specific layouts using certain metadata available to the archive page. The [Layouts](layouts.md) page will show you how to create a layout for use with Archives.
0 commit comments