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;
}
main h2 {
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
color: #002244;
z-index: 2; /* Make appear under #menu */
position: relative;
}
main h1 {
font-size: 1.8em;
}
article {
overflow-y: hidden;
}

View File

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