commit 7b5f478d5549ce7f8559ecef6ce36a37672bb155
parent a6a18563efd144431b1dacf032439f7aaa623b8d
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Fri, 7 Mar 2025 19:41:55 +0100
fix: sort yaml files for the index page
Diffstat:
4 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulse.yaml b/01_pulse.yaml
diff --git a/tide.yaml b/02_tide.yaml
diff --git a/net.yaml b/99_net.yaml
diff --git a/index.php b/index.php
@@ -88,7 +88,7 @@
<p>Planet-Style Newsfeed generated with perlanet.</p>
<?php
- foreach (glob("[a-z]*.yaml") as $yamlfile) {
+ foreach (glob("[0-9a-z_]*.yaml") as $yamlfile) {
$yaml = explode(PHP_EOL, file_get_contents($yamlfile));
$title_arr = array_values(preg_grep("/^title:.*$/", $yaml));
$title = preg_replace("/^title:\s*/", "", $title_arr[0]);