yearlist in the sidenav
This commit is contained in:
@@ -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([
|
||||||
|
|||||||
Reference in New Issue
Block a user