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