Skip to content

Commit 650c91d

Browse files
committed
Tests with ADI
1 parent 7f3c121 commit 650c91d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

_config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ social:
2828
- title: youtube
2929
url: https://youtube.com/@AbnormalDevOpsIterations
3030
- title: twitter
31-
url: https://x.com/example42
31+
url: https://x.com/example42
32+
33+
collections:
34+
episodes:
35+
output: true
36+
permalink: /episodes/:path/

_includes/adi_list.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515

1616
<div class="lead">
1717
<ul class="posts">
18-
{% for post in site.episodes %}
18+
{% assign numbered_posts = site.episodes | where: "extname", ".md" %}
19+
{% assign sorted_posts = numbered_posts | sort: "path" | reverse %}
20+
{% for post in sorted_posts %}
21+
{% assign file_number = post.path | split: "/" | last | replace: ".md", "" | plus: 0 %}
1922
<li>
20-
{{ post.date | date: "%Y-%m-%d" }} - <a href="{{ site.url }}{{ post.url }}" target="_parent">{{ post.title }}</a>
23+
<strong>{{ post.path | split: '/' | last | replace: '.md', '' }} </strong>: <a href="{{ site.url }}{{ post.url }}" target="_parent">{{ post.title }}</a>
2124
</li>
2225
{% endfor %}
2326
</ul>

0 commit comments

Comments
 (0)