diff options
author | metamuffin <metamuffin@disroot.org> | 2023-02-16 15:06:20 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-02-16 15:06:20 +0100 |
commit | 16492b31c83e509fe24a6d8d67e3f04f9810751d (patch) | |
tree | a28471054005d168fd193652166495ad128cb341 | |
parent | 5df0653b95e5abbc4124c37bad7ac096aca304bf (diff) | |
download | metamuffin-website-16492b31c83e509fe24a6d8d67e3f04f9810751d.tar metamuffin-website-16492b31c83e509fe24a6d8d67e3f04f9810751d.tar.bz2 metamuffin-website-16492b31c83e509fe24a6d8d67e3f04f9810751d.tar.zst |
improve accessabity
-rw-r--r-- | src/layout.rs | 13 |
1 files changed, 11 insertions, 2 deletions
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" } " " |