aboutsummaryrefslogtreecommitdiff
path: root/src/html/bread.html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
committerMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
commita119a3c73f02408b0e2ceedf0ac71e4e684b4cad (patch)
treeb749b95a511773dab291ef4f34b951b16c763bef /src/html/bread.html
parentf4b2eabe2da89abc33e4cbe21ca1560995b32eca (diff)
Add animation, blog, and feed template
Diffstat (limited to 'src/html/bread.html')
-rw-r--r--src/html/bread.html18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/html/bread.html b/src/html/bread.html
index 1ce1478..0658e11 100644
--- a/src/html/bread.html
+++ b/src/html/bread.html
@@ -5,12 +5,12 @@
<title>Mark's Kitchen - Bread</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/bootstrap.css">
<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>
- window.onload = function () {
+ window.onload = loadFeed(function () {
var feed = new Vue({
el: '.feed',
data: {
@@ -21,7 +21,7 @@
.then(response => this.posts = response);
}
});
- }
+ })
</script>
</head>
@@ -29,17 +29,7 @@
<div>
<h1>Bread</h1>
Some highlights (and lowlights) of breadmaking
- <div class="feed">
- <div class="card" v-for="post in posts">
- <p class="card-text">{{ 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">{{ post.createdAt.substring(0,10) }}</p>
- </div>
- </div>
+ <div id="feed"></div>
</div>
</body>