aboutsummaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorHunternif2021-08-31 04:40:21 +0100
committerHunternif2021-08-31 04:57:15 +0100
commita101253c5ef8b34888a0810a18fee141a66126c6 (patch)
tree73a57d56c14af33883d08f7524ac8712fc2469e3 /client/html
parent52205093803136cb64592cbbe12a2723a910d349 (diff)
client: add list of similar posts to post sidebar
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_readonly_sidebar.tpl5
-rw-r--r--client/html/similar_post_item.tpl5
2 files changed, 10 insertions, 0 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index be1f95d..b90b516 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -82,6 +82,11 @@
</nav>
<% } %>
+ <nav class='similar'>
+ <h1>Similar</h1>
+ <ul></ul>
+ </nav>
+
<nav class='tags'>
<h1>Tags (<%- ctx.post.tags.length %>)</h1>
<% if (ctx.post.tags.length) { %>
diff --git a/client/html/similar_post_item.tpl b/client/html/similar_post_item.tpl
new file mode 100644
index 0000000..7203b1e
--- /dev/null
+++ b/client/html/similar_post_item.tpl
@@ -0,0 +1,5 @@
+<li>
+ <a href='<%= ctx.getPostUrl(ctx.id, ctx.parameters) %>'>
+ <%= ctx.makeThumbnail(ctx.thumbnailUrl) %>
+ </a>
+</li>

© 2015 - 2026 Jakob L. Kreuze