Bug fix with the search page's EJS

This commit is contained in:
2025-10-01 10:44:34 +01:00
parent 521dbccc7e
commit 788672cbea

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang='<%- config.locale %>>
<html lang='<%- config.locale %>'>
<head>
<%- include('../partials/head'); %>
</head>
@@ -27,10 +27,10 @@
<div id='results'>
<% search_results.posts.forEach((result, index) => { %>
<a href="/post/<%- result.id %>"><%- result.title %></a>
<a href="/post/<%- result.id %>"><%- result.title %></a><br/>
<% }); %>
<% search_results.users.forEach((result, index) => { %>
<a href="/user/<%- result.username %>"><%- result.prettyname %></a>
<a href="/user/<%- result.username %>"><%- result.prettyname %></a><br/>
<% }); %>
</div>
</body>