Skip to content

Commit

Permalink
Import lunr from package
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTham committed Sep 6, 2022
1 parent 6ae5c30 commit f5f62bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/search.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import { Icon } from 'astro-icon'
---

<script is:inline src="https://unpkg.com/lunr/lunr.min.js"></script>

<script>
import lunr from 'lunr'
</script>
<div x-data={`
{
searchResults: false,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/2022-08-28-roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Current issues:

- MDX content currently not included in search as it does not support rawContent property.
- Better support for Mermaid (awaiting possible official integration by Astro)
- Should really use load package scripts/CSS from node_modules rather than external CDN, but can't figure an easy way of doing this. Problem is these assets are not statically loaded but dynamic per page based whether they are required or not.
- Should really use load Mermaid and Markmap scripts from packages rather than external CDN.

0 comments on commit f5f62bb

Please sign in to comment.