diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-08-13 11:12:37 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-08-13 11:12:37 -0500 |
commit | 73e145884680242d64bc542afac09aee5f24b132 (patch) | |
tree | f96d12daaeeb330dae68cdba5c02c42162ff6840 /src/html | |
parent | 09fdcb05b2c1fa7a51e4b4110c7317b5d0e361f4 (diff) |
Remove client JS requirement from /blog, convert new posts from markdown automatically
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/admin.html | 3 | ||||
-rw-r--r-- | src/html/blog.html | 16 |
2 files changed, 2 insertions, 17 deletions
diff --git a/src/html/admin.html b/src/html/admin.html index 363f5c0..6136b3c 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -8,6 +8,7 @@ <link rel="stylesheet" type="text/css" href="/css/styles.css"> <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 = function () { var feed = new Vue({ @@ -39,7 +40,7 @@ <div> <h1>Create Post</h1> <div class="form"> - <form action="/posts" method="post" enctype="multipart/form-data"> + <form action="/admin/posts" method="post" enctype="multipart/form-data"> <div> <textarea name="description"></textarea> </div> diff --git a/src/html/blog.html b/src/html/blog.html index c0662f7..03a37e4 100644 --- a/src/html/blog.html +++ b/src/html/blog.html @@ -33,22 +33,6 @@ <a class="navigation" href="/" title="marks.kitchen"><</a> Blog </h1> - <!-- <div id="feed" class="feed"> - <div class="card" v-for="post in posts"> - <p class="card-text" v-html="post.description"></p> - <div class="card-img"> - <span v-for="image in post.images"> - <a v-bind:href="image"><img v-bind:src="image"></a> - </span> - </div> - <p class="date"> - <a v-bind:href="'/blog/'+post.id">{{{ post.createdAt.substring(0,10) }}}</a> - <span v-for="tag in post.tags"> - <a class="tag" v-bind:href="'/tags#'+tag">{{tag}}</a> - </span> - </p> - </div> - </div> --> <div id="feed" class="feed"></div> </div> </body> |