feat: add site search

This commit is contained in:
Cory Dransfeldt 2023-07-04 17:07:06 -07:00
parent dd98b01bbd
commit 74699d618c
No known key found for this signature in database
8 changed files with 129 additions and 32 deletions

View file

@ -2,8 +2,8 @@
layout: main
---
{% include "header.liquid" %}
<article class="h-entry">
<h2 class="p-name text-xl md:text-2xl font-black leading-tight dark:text-gray-200 pt-8">{{ title }}</h2>
<article class="h-entry" data-pagefind-body>
<h2 class="p-name text-xl md:text-2xl font-black leading-tight dark:text-gray-200 pt-8" data-pagefind-meta="title">{{ title }}</h2>
<span class="p-author h-card hidden">{{ site.title }}</span>
<time class="mt-2 mb-6 block text-sm dt-published" datetime="{{ date }}">{{ date | readableDate }}</time>
<div class="p-summary hidden">{{ post_excerpt | markdown }}</div>