Quirks Mode no more! (#169)

* Serve standard mode documents

* One of these days I'll remember to run rustfmt and clippy, I promise
This commit is contained in:
Felix Suchert 2022-08-27 20:20:11 +02:00 committed by GitHub
parent d89fc4929a
commit c2f0b88b02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ use std::time::Duration;
use hyper::header::CONTENT_TYPE; use hyper::header::CONTENT_TYPE;
use hyper::{Body, Response}; use hyper::{Body, Response};
use maud::{html, Markup, Render}; use maud::{html, Markup, Render, DOCTYPE};
pub mod error; pub mod error;
pub mod index; pub mod index;
@ -13,6 +13,7 @@ use crate::server::SELF_BASE_URL;
fn render_html<B: Render>(title: &str, body: B) -> Response<Body> { fn render_html<B: Render>(title: &str, body: B) -> Response<Body> {
let rendered = html! { let rendered = html! {
(DOCTYPE)
html { html {
head { head {
meta charset="utf-8"; meta charset="utf-8";