Fix markdown header formatting in motd
This commit is contained in:
parent
9f7ef8bdb1
commit
376c7ad890
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"]));
|
||||
|
|
Loading…
Reference in New Issue