From 16492b31c83e509fe24a6d8d67e3f04f9810751d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 16 Feb 2023 15:06:20 +0100 Subject: improve accessabity --- src/layout.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/layout.rs b/src/layout.rs index 28aaddb..600b61a 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -28,13 +28,22 @@ markup::define! { include_css: bool ) { @markup::doctype() - html { + html[lang="en"] { head { title { @title " - " "metamuffin's website" } + meta[name="viewport", content="width=device-width, initial-scale=1.0"]; + meta[name="description", content="metamuffin's personal website"]; // TODO @if *include_css { link[rel="stylesheet", href="/style.css"]; } } body { - @if !noimg { img[src="https://s.metamuffin.org/avatar/default-512.webp", align="left", height=80, hspace=10]; } + @if !noimg { img[ + src="https://s.metamuffin.org/avatar/default-512.webp", + alt="a muffin with purple glowing regions where a 3d vornoi function using chebychev distance exceeds some threshold", + align="left", + height=80, + width=80, + hspace=10, + ]; } h1 { "metamuffin's personal website" } nav { a[href=uri!(r_about())] { "About" } " " -- cgit v1.2.3-70-g09d2