parent
7ee59c28df
commit
362f2335ec
|
@ -31,6 +31,10 @@ const footerLinks = [
|
||||||
title: 'Daily list',
|
title: 'Daily list',
|
||||||
href: '/daily',
|
href: '/daily',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Search',
|
||||||
|
href: '/search',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,11 @@
|
||||||
---
|
---
|
||||||
|
import PageLayout from '../layouts/PageLayout.astro'
|
||||||
---
|
---
|
||||||
|
|
||||||
<script>
|
<PageLayout title="Search">
|
||||||
import Alpine from 'alpinejs';
|
<form action="https://www.google.com/search" method="get">
|
||||||
|
<input type="hidden" name="q" value="site:https://www.oliverdavies.uk">
|
||||||
window.Alpine = Alpine;
|
<input type="text" name="q" alt="search">
|
||||||
Alpine.start();
|
<input type="submit" value="Search">
|
||||||
</script>
|
|
||||||
|
|
||||||
<div x-data="{ term: '' }">
|
|
||||||
<form :action="`https://www.google.com/search?q=site%3Aoliverdavies.uk+%22` + term + `%22`">
|
|
||||||
|
|
||||||
<input type="text" x-model="term" />
|
|
||||||
<button>Search</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</PageLayout>
|
||||||
|
|
Loading…
Reference in a new issue