Fix markdown header formatting in motd

This commit is contained in:
Peder Bergebakken Sundt 2018-08-13 18:57:26 +02:00
parent 9f7ef8bdb1
commit 376c7ad890
2 changed files with 12 additions and 4 deletions

View File

@ -238,13 +238,21 @@ main {
background-color: #fff; background-color: #fff;
} }
main h2 { main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
color: #002244; color: #002244;
z-index: 2; /* Make appear under #menu */ z-index: 2; /* Make appear under #menu */
position: relative; position: relative;
} }
main h1 {
font-size: 1.8em;
}
article { article {
overflow-y: hidden; overflow-y: hidden;
} }

View File

@ -82,13 +82,13 @@ $motd = $motdfetcher->getMOTD();
<?php <?php
$title = $motd["title"]; $title = $motd["title"];
echo "<h2>"; echo "<h1>";
if($title == ""){ if($title == ""){
echo "Dagens melding"; echo "Dagens melding";
}else{ }else{
echo $title; echo $title;
} }
echo "</h2>"; echo "</h1>";
$Parsedown = new Parsedown(); $Parsedown = new Parsedown();
echo $Parsedown->text(implode("\n", $motd["content"])); echo $Parsedown->text(implode("\n", $motd["content"]));