Fix accessibility issues found with crawler

This commit is contained in:
Christian Bundy 2019-06-29 13:24:44 -07:00
parent 81ca6a94a2
commit dfe3a2eb8e
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
2 changed files with 17 additions and 16 deletions

View File

@ -163,7 +163,7 @@ nav * {
}
nav a {
color: #888;
color: #666;
text-decoration: none;
font-weight: bold;
}

View File

@ -12,23 +12,24 @@ const {
var doctypeString = '<!DOCTYPE html>'
module.exports = (...elements) => {
const nodes = html(
head(
title(`🏝️ Oasis`),
link({ rel: 'stylesheet', href: '/assets/style.css' }),
link({ rel: 'stylesheet', href: '/highlight/github.css' })
),
body(
nav(
a({ href: '/' }, 'home'),
a({ href: '/profile' }, 'profile'),
a({ href: '/status' }, 'status'),
a({ href: 'https://github.com/fraction/oasis' }, 'source'),
a({ href: 'https://github.com/fraction/oasis/issues/new' }, 'help')
const nodes =
html({ lang: 'en' },
head(
title(`🏝️ Oasis`),
link({ rel: 'stylesheet', href: '/assets/style.css' }),
link({ rel: 'stylesheet', href: '/highlight/github.css' })
),
section({ id: 'content' }, ...elements)
body(
nav(
a({ href: '/' }, 'home'),
a({ href: '/profile' }, 'profile'),
a({ href: '/status' }, 'status'),
a({ href: 'https://github.com/fraction/oasis' }, 'source'),
a({ href: 'https://github.com/fraction/oasis/issues/new' }, 'help')
),
section({ id: 'content' }, ...elements)
)
)
)
const result = doctypeString + nodes.outerHTML