Skip to content

Commit caed00d

Browse files
committed
Use collection, add index page
1 parent 22b6ec5 commit caed00d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

_config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ collections:
7878
versions:
7979
output: true
8080
permalink: /version/:path
81+
migrations:
82+
output: true
83+
permalink: /migration/:path
8184

8285
# Exclude from processing.
8386
# The following items will not be processed, by default. Create a custom list
@@ -124,7 +127,7 @@ defaults:
124127
permalink: /blog/:title/
125128
-
126129
scope:
127-
path: "migration" # an empty string here means all files in the project
130+
type: "migrations"
128131
values:
129132
layout: migration-guide
130133
toc: true

migrations.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: base
3+
---
4+
5+
{% assign doclist = site.migrations %}
6+
<ul>
7+
{% for doc in doclist %}
8+
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.url }}</a></li>
9+
{% endfor %}
10+
</ul>
11+

0 commit comments

Comments
 (0)