[mod] move links
This commit is contained in:
parent
8d47b8c9c3
commit
b001d124f6
6 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Caddy
|
||||||
|
|
||||||
|
needs plugins
|
|
@ -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));
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue