site: implement search functionality

This commit is contained in:
Lucas Gabriel Vuotto 2025-04-27 15:20:49 +00:00
parent 3ae6b02672
commit 08be6b17f5
8 changed files with 257 additions and 2 deletions

View file

@ -5,6 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title><%= join(" - ", "Pooru", title() // ()) %></title>
<%= stylesheet "/css/style.css" %>
% if (stash "pooru.search") {
<%= javascript begin %>
const endpoints = {
search: "<%= url_for("search_tags") %>",
};
<% end %>
<%= javascript "/js/app.js", defer => undef %>
<%= javascript '/js/alpinejs@3.14.9/dist/cdn.min.js', defer => undef %>
% }
</head>
<body class="layout-flex-column">
<header>