Fix: Use html-plugin-include fragments

This commit is contained in:
2025-11-09 18:56:55 -08:00
parent 262c84e5da
commit 43c45f61d6

View File

@@ -1,18 +1,20 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<%- include('src/partials/head.html') %> <!-- html-plugin-include: "./src/partials/head.html" -->
</head> </head>
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')"> <body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">
<div class="flex flex-col h-dvh max-h-dvh overflow-hidden"> <div class="flex flex-col h-dvh max-h-dvh overflow-hidden">
<%- include('src/partials/header.html') %> <!-- html-plugin-include: "./src/partials/header.html" -->
<%- include('src/partials/main.html') %> <!-- html-plugin-include: "./src/partials/main.html" -->
<%- include('src/partials/footer.html') %> <!-- html-plugin-include: "./src/partials/footer.html" -->
</div> </div>
<%- include('src/partials/sidebars.html') %>
<%- include('src/partials/popovers.html') %> <!-- html-plugin-include: "./src/partials/sidebars.html" -->
<%- include('src/partials/modals.html') %> <!-- html-plugin-include: "./src/partials/popovers.html" -->
<%- include('src/partials/scripts.html') %> <!-- html-plugin-include: "./src/partials/modals.html" -->
<!-- html-plugin-include: "./src/partials/scripts.html" -->
<script type="module" src="/src/main.js"></script> <script type="module" src="/src/main.js"></script>
</body> </body>
</html> </html>