diff --git a/layouts/contact/single.html b/layouts/contact/single.html
index 72c0a05..e3a2906 100644
--- a/layouts/contact/single.html
+++ b/layouts/contact/single.html
@@ -7,7 +7,7 @@
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
test()
async function test() {
- var res = await (await (fetch(net_host + net_fun + 'utils'))).json();
+ var res = await (await (fetch(net_host + net_fun + 'website'))).json();
res = (res.filter(val => val.key === 'contact'))[0].val;
document.getElementById('container').innerHTML = marked.parse(res);
}
diff --git a/layouts/imprint/single.html b/layouts/imprint/single.html
index a3c07a4..3ee5e52 100644
--- a/layouts/imprint/single.html
+++ b/layouts/imprint/single.html
@@ -7,7 +7,7 @@
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
test()
async function test() {
- var res = await (await (fetch(net_host + net_fun + 'utils'))).json();
+ var res = await (await (fetch(net_host + net_fun + 'website'))).json();
res = (res.filter(val => val.key === 'imprint'))[0].val;
document.getElementById('container').innerHTML = marked.parse(res);
}
diff --git a/static/client.js b/static/client.js
index 7daa884..349ac84 100644
--- a/static/client.js
+++ b/static/client.js
@@ -3,14 +3,12 @@ document.title = tiko
data()
async function data() {
- var res = await (await (fetch(net_host + net_fun + 'utils'))).json()
+ let res = await (await (fetch(net_host + net_fun + 'website'))).json()
res = res.filter(val => val.cat !== 'static')
+ res = groupBy(res, 'cat');
- var content = document.getElementById('container')
var list = document.createElement('ul')
- content.prepend(list)
-
- res = groupBy(res, 'cat');
+ document.getElementById('container').prepend(list)
for (var elem in res) {
var head = document.createElement('h5')
diff --git a/static/foot.js b/static/foot.js
index 687a9c2..03a3fe4 100644
--- a/static/foot.js
+++ b/static/foot.js
@@ -20,6 +20,6 @@ for (var elem of ['index', "contact", 'imprint']) {
bottomnav.append(ahref)
}
-let path = window.location.pathname.split('/').pop().replace('.html', '')
+let path = window.location.pathname.split('/').pop().replace('.html', '') || 'index'
const element = document.getElementById(path)
if (element) element.classList.add('active');
\ No newline at end of file