yearlist in the sidenav
This commit is contained in:
@@ -88,9 +88,6 @@ foreach($years as $year){?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li class="bold">
|
||||
<a class="waves-effect waves-teal right-align" href="#infos">Infos</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
@@ -116,6 +113,12 @@ $fileList = glob($basePath."/infoZettel/*.md");
|
||||
rsort($fileList);
|
||||
|
||||
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);
|
||||
echo(
|
||||
AppCard::fromArray([
|
||||
|
||||
Reference in New Issue
Block a user