Skip to content

Commit

Permalink
Merge pull request #202 from tiefps/master
Browse files Browse the repository at this point in the history
docs(playlists): add a playlist index page to list child pages
  • Loading branch information
tomdev committed Apr 22, 2024
2 parents 72910a9 + d91a44e commit f621331
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions playlists/playlists.html
@@ -0,0 +1,14 @@
---
layout: page
title: Playlists
permalink: /playlists/
---

{% for child_page in site.pages %}
{% assign target_dir = 'playlists/' %}
{% if child_page.path contains target_dir and child_page.path != page.path %}
<li>
<a href="{{ child_page.url | relative_url }}">{{ child_page.title }}</a>
</li>
{% endif %}
{% endfor %}

0 comments on commit f621331

Please sign in to comment.