Add jank support for html motds.

This commit is contained in:
voussoir 2021-01-04 02:23:03 -08:00
parent 79c6af5d9b
commit 4d0565d9bb

View file

@ -59,7 +59,15 @@ body > div
</head> </head>
<body> <body>
<p id="motd">{{motd}}</p> <p id="motd">
{%- if motd is string -%}
{{motd}}
{%- elif motd[0] == "html" -%}
{{motd[1]|safe}}
{%- else -%}
{{motd[1]}}
{%- endif -%}
</p>
<a class="nice_link" href="/search">Search</a> <a class="nice_link" href="/search">Search</a>
<a class="nice_link" href="/tags">Browse tags</a> <a class="nice_link" href="/tags">Browse tags</a>
<a class="nice_link" href="/albums">Browse albums</a> <a class="nice_link" href="/albums">Browse albums</a>