aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/blog.ecr1
-rw-r--r--src/views/home.ecr3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/views/blog.ecr b/src/views/blog.ecr
index e69de29..c336c58 100644
--- a/src/views/blog.ecr
+++ b/src/views/blog.ecr
@@ -0,0 +1 @@
+<%= blog_lists %> \ No newline at end of file
diff --git a/src/views/home.ecr b/src/views/home.ecr
index 2928a32..2935993 100644
--- a/src/views/home.ecr
+++ b/src/views/home.ecr
@@ -6,7 +6,7 @@
</p>
</div>
</div>
-<span hx-get="/posts" hx-trigger="load" hx-target="#result"></span>
+<span hx-get="/posts" hx-trigger="load" hx-target="#result" hx-target-404="#not-found"></span>
<div>
<div>
<h4>Books I'm reading now</h4>
@@ -14,6 +14,7 @@
</div>
<h4>Recent Posts</h4>
<ul id="result">
+ <li id="not-found" hx-swap-oob="true">No Recent Posts</li>
</ul>
</div>
<script src="https://www.goodreads.com/review/grid_widget/162656738.Indrajith's%20currently-reading%20book%20montage?cover_size=medium&hide_link=&hide_title=true&num_books=20&order=a&shelf=currently-reading&sort=date_added&widget_id=1676363812" type="text/javascript" charset="utf-8"></script>