- Integrated Lunr.js library for indexing and searching content. - Created search.js to handle search queries and display results dynamically. - Implemented displayResults function to format and show search results. - Enhanced search functionality with boosted fields for title and content. - Added search.min.js for optimized production use.
24 lines
398 B
HTML
24 lines
398 B
HTML
|
|
|
|
{{ define "main"}}
|
|
<div class="wrapper list-page">
|
|
<header class="header">
|
|
<h1 class="header-title center">{{ .Title }}</h1>
|
|
</header>
|
|
|
|
<main class="page-content" aria-label="Content">
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="main-inner">
|
|
|
|
|
|
<script src="/js/lunr.min.js"></script>
|
|
</div>
|
|
|
|
</div>
|
|
{{ partial "search-index.html" . }}
|
|
</main>
|
|
</div>
|
|
{{ end }}
|