diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-08-13 12:08:47 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-08-13 12:08:47 -0500 |
commit | 0ea3736521aca1160a9c927b6a8e6a04724f67ee (patch) | |
tree | 03af5531f7d22a835997ea4f8699d636d69340d5 /src/html/post-single.html | |
parent | 73e145884680242d64bc542afac09aee5f24b132 (diff) |
Remove client JS requirement from single blog view
Diffstat (limited to 'src/html/post-single.html')
-rw-r--r-- | src/html/post-single.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/html/post-single.html b/src/html/post-single.html deleted file mode 100644 index 221ade4..0000000 --- a/src/html/post-single.html +++ /dev/null @@ -1,41 +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"></script> - <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> --> - <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> - <script> - window.onload = loadFeed(function () { - var feed = new Vue({ - el: '.feed', - data: { - posts: [] - }, - created() { - var name = window.location.pathname.split("/")[2]; - var id = parseInt(window.location.pathname.split("/")[3]); - fetch(new Request('/posts/'+name+"/"+id)).then(response => response.json()) - .then(response => { response.forEach(post => this.posts = response); - }); - } - }); - }) - </script> -</head> - -<body> - <div> - <h1> - <a class="navigation" href="/" title="marks.kitchen"><</a> - </h1> - <div id="feed"></div> - </div> -</body> - -</html>
\ No newline at end of file |