Skip to content

search.md geneation improvements required. #33

@rsdoiel

Description

@rsdoiel

The configuration for PageFind needs to respect the relative path to where it is installed for linked content. This will let the PageFind work on an individual site on a development machine and when the website is published via GitHub.

Here's an example script element.

<script>
    window.addEventListener('DOMContentLoaded', (event) => {
        new PagefindUI({ 
            element: "#search",
            basePath: "./",
        });
    });
</script>

The second problem is that you should be able to link directly to a search result via the q= parameter. I need to integrate that into this JavaScript template.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcriticalA blocking issue for next release or a causing of broken functionality in current release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions