[mod] move links

This commit is contained in:
Andy Bunce 2021-12-26 15:18:28 +00:00
parent 8d47b8c9c3
commit b001d124f6
6 changed files with 7 additions and 2 deletions

View File

@ -7,13 +7,14 @@
fish.local {
encode zstd gzip
root .
file_server browse
}
n2-plus.local {
encode zstd gzip
templates
root links
file_server browse
}

View File

@ -0,0 +1,3 @@
Caddy
needs plugins

View File

@ -1,3 +1,4 @@
# hack file:// load
if (/^file:\/\/\//.test(location.href)) {
let path = './';
let orig = fetch;
@ -46,7 +47,7 @@ var app = new Vue({
methods:{
load() {
this.hits += 1
fetch("data.json")
fetch("links.json")
.then(response => response.json())
.then(data => (this.json = data));
}