This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/pages/search.html

23 lines
No EOL
799 B
HTML

---
title: Search
description: "Search through and find the posts on my site."
layout: default
permalink: /search.html
---
{% capture css %}
{% render "../assets/styles/widgets/forms.css" %}
{% render "../assets/styles/widgets/pagefind.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<pagefind-search _show_images="false">
<form action="https://duckduckgo.com/" method="get" style="min-height: 3.2em;">
<label>
<input placeholder="Search" type="search" name="q" autocomplete="off" autofocus>
</label>
<input type="hidden" placeholder="Search" name="sites" value="coryd.dev">
</form>
</pagefind-search>
{% render "partials/popular-posts.liquid", posts: collections.posts, analytics: analytics %}
<script type="module" src="/assets/scripts/pagefind-search.js" defer></script>