diff --git a/html/contact.html b/html/contact.html
index 29254f2..3de4dd7 100644
--- a/html/contact.html
+++ b/html/contact.html
@@ -10,7 +10,7 @@
}
function copyFile(id) {
- fetch(document.getElementById(id).childNodes[1].href).then(f => {
+ fetch(document.getElementById(id).childNodes[0].href).then(f => {
f.text().then(t => {
navigator.clipboard.writeText(t);
})
diff --git a/src/route.go b/src/route.go
index 19ce2c3..664e7af 100644
--- a/src/route.go
+++ b/src/route.go
@@ -18,7 +18,7 @@ var routes = []struct {
{[]string{"GET"}, url(""), index},
{[]string{"GET"}, url("/(pgp.asc|ssh)"), static},
{[]string{"GET"}, url("/static/.+"), static},
- {[]string{"GET"}, url("/(.+\\.css)"), css},
+ {[]string{"GET"}, url("/(.+\\.(css))"), file},
{[]string{"GET"}, url("/([^/]+)"), html},
}