aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-08-13 12:19:23 -0500
committerMark Powers <markppowers0@gmail.com>2020-08-13 12:19:23 -0500
commit69d905dad713253b63da55fb044e68f8a6ed5a55 (patch)
tree9c92639e934f69d869c2ec7a0364b3f93fe0282d /src/html
parent0ea3736521aca1160a9c927b6a8e6a04724f67ee (diff)
Remove client JS requirement from tag view
Diffstat (limited to 'src/html')
-rw-r--r--src/html/tags.html39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/html/tags.html b/src/html/tags.html
deleted file mode 100644
index 9302993..0000000
--- a/src/html/tags.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!doctype html>
-<html lang="en">
-
-<head>
- <title>Mark's Kitchen - Blog</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="/css/styles.css">
- <script src="/js/feed.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
- <script>
- window.onload = window.onhashchange = function () {
- loadFeed(function () {
- var feed = new Vue({
- el: '#view',
- data: {
- posts: [],
- tag: window.location.hash
- },
- created() {
- console.log(this.tag);
- var tag = window.location.hash.substring(1);
- fetch(new Request(`/tags/${tag}`)).then(response => response.json())
- .then(response => this.posts = response);
- }
- });
- })
- }
- </script>
-</head>
-
-<body>
- <div id="view">
- <h1><a class="navigation" href="/" title="marks.kitchen">&lt;</a>{{tag}}</h1>
- <div id="feed"></div>
- </div>
-</body>
-
-</html> \ No newline at end of file