yearlist in the sidenav

This commit is contained in:
marko
2022-01-16 19:00:11 +01:00
parent a756f9b4a8
commit bfa186cb19

View File

@@ -88,9 +88,6 @@ foreach($years as $year){?>
<?php <?php
} }
?> ?>
<li class="bold">
<a class="waves-effect waves-teal right-align" href="#infos">Infos</a>
</li>
</ul> </ul>
</header> </header>
@@ -116,6 +113,12 @@ $fileList = glob($basePath."/infoZettel/*.md");
rsort($fileList); rsort($fileList);
foreach($fileList as $file){ foreach($fileList as $file){
$thisYear = (int)substr(basename($file), 0, 4);
if($thisYear != $currentYear){
$currentYear=$thisYear;
echo("<h2 id=\"infoZettel-".$currentYear."\">".$currentYear."</h2>");
}
$infoZettel = loadMarkdownFile($file); $infoZettel = loadMarkdownFile($file);
echo( echo(
AppCard::fromArray([ AppCard::fromArray([