[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 { fish.local {
encode zstd gzip encode zstd gzip
root .
file_server browse file_server browse
} }
n2-plus.local { n2-plus.local {
encode zstd gzip encode zstd gzip
templates root links
file_server browse 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)) { if (/^file:\/\/\//.test(location.href)) {
let path = './'; let path = './';
let orig = fetch; let orig = fetch;
@ -46,7 +47,7 @@ var app = new Vue({
methods:{ methods:{
load() { load() {
this.hits += 1 this.hits += 1
fetch("data.json") fetch("links.json")
.then(response => response.json()) .then(response => response.json())
.then(data => (this.json = data)); .then(data => (this.json = data));
} }