add default unpoly settings
This commit is contained in:
@@ -4,13 +4,12 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.css">
|
||||||
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.23/dist/full.min.css" rel="stylesheet" type="text/css" />
|
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.23/dist/full.min.css" rel="stylesheet" type="text/css" />
|
||||||
<body>
|
|
||||||
|
|
||||||
|
<body>
|
||||||
<nav class="fixed top-0 z-50 w-full p-4">
|
<nav class="fixed top-0 z-50 w-full p-4">
|
||||||
<div class="navbar bg-base-300 rounded-box drop-shadow-md">
|
<div class="navbar bg-base-300 rounded-box drop-shadow-md">
|
||||||
|
|
||||||
{{/* Logo with navigation */}}
|
{{/* Logo with navigation */}}
|
||||||
|
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<a href="/" tabindex="0" class="btn btn-ghost text-xl">crowsnest</a>
|
<a href="/" tabindex="0" class="btn btn-ghost text-xl">crowsnest</a>
|
||||||
<ul class="menu menu-horizontal hidden sm:flex">
|
<ul class="menu menu-horizontal hidden sm:flex">
|
||||||
@@ -20,7 +19,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/* Search field for normal sized screen */}}
|
{{/* Search field for normal sized screen */}}
|
||||||
|
|
||||||
<div class="hidden sm:flex flex-none pe-4">
|
<div class="hidden sm:flex flex-none pe-4">
|
||||||
<form role="search" method="post" action="/up/search" up-submit up-autosubmit up-target=".content">
|
<form role="search" method="post" action="/up/search" up-submit up-autosubmit up-target=".content">
|
||||||
<label class="input input-bordered input-sm flex items-center gap-2">
|
<label class="input input-bordered input-sm flex items-center gap-2">
|
||||||
@@ -34,7 +32,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/* Dropdown for small screens */}}
|
{{/* Dropdown for small screens */}}
|
||||||
|
|
||||||
<div class="dropdown dropdown-end sm:hidden">
|
<div class="dropdown dropdown-end sm:hidden">
|
||||||
<div tabindex="0" role="button" class="btn btn-ghost">
|
<div tabindex="0" role="button" class="btn btn-ghost">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"
|
||||||
@@ -57,6 +54,10 @@
|
|||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.js"></script>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<script>
|
||||||
|
up.link.config.followSelectors.push('a[href]')
|
||||||
|
up.link.config.instantSelectors.push('a[href]')
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user