diff --git a/caddy/site/links/index.html b/caddy/site/links/index.html index 1658d25..7ed9e58 100644 --- a/caddy/site/links/index.html +++ b/caddy/site/links/index.html @@ -1,13 +1,19 @@ -Caddy test - + + + + Caddy test + + + + - This is a test - Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}} +
+ Loaded at: {{ loaded }} @@ -15,7 +21,9 @@
{{ message }}
{{ json  }}
-
- + + + + \ No newline at end of file diff --git a/caddy/site/links/index.js b/caddy/site/links/index.js index b1a8968..910d461 100644 --- a/caddy/site/links/index.js +++ b/caddy/site/links/index.js @@ -4,7 +4,8 @@ var app = new Vue({ data: { message: 'Hello Vue!', json: null, - hits:0 + hits:0, + loaded: null }, filters: { pretty: function(value) { @@ -13,6 +14,7 @@ var app = new Vue({ }, methods:{ load() { + this.loaded = new Date() this.hits += 1 fetch("links.json") .then(response => response.json())