Fix accessibility issues found with crawler
This commit is contained in:
parent
81ca6a94a2
commit
dfe3a2eb8e
|
@ -163,7 +163,7 @@ nav * {
|
|||
}
|
||||
|
||||
nav a {
|
||||
color: #888;
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue