Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagefind files fail to load when using a path prefix #96

Open
cooljeanius opened this issue Mar 8, 2024 · 4 comments
Open

Pagefind files fail to load when using a path prefix #96

cooljeanius opened this issue Mar 8, 2024 · 4 comments

Comments

@cooljeanius
Copy link

cooljeanius commented Mar 8, 2024

I recently followed the directions in #13 to work towards fixing cooljeanius/my_tweetback_archive#1. However, even after doing so, the "search" interface still doesn't show up on my archive page; see here:
https://cooljeanius.github.io/my_tweetback_archive/
@stefanbohacek reported noticing this, too. Maybe the path-rewriting code needs some tweaking?

@bglw
Copy link

bglw commented Mar 20, 2024

Some context in this mastodon thread: https://fosstodon.org/@egallager@treehouse.systems/112128338307861881

tl;dr — Jekyll won't serve the _pagefind directory as it leads with an underscore. Can be fixed in usage by configuring Pagefind's bundle directory.

From the Tweetback side of things, migrating the project to Pagefind 1.0 (mainly just a few changed keys) will also change Pagefind's default path from _pagefind to pagefind, which was a 1.0 change made specifically for this issue 🙂

@cooljeanius
Copy link
Author

Some context in this mastodon thread: fosstodon.org/@egallager@treehouse.systems/112128338307861881

tl;dr — Jekyll won't serve the _pagefind directory as it leads with an underscore. Can be fixed in usage by configuring Pagefind's bundle directory.

From the Tweetback side of things, migrating the project to Pagefind 1.0 (mainly just a few changed keys) will also change Pagefind's default path from _pagefind to pagefind, which was a 1.0 change made specifically for this issue 🙂

Do you have a link to the Pagefind change in question?

@zachleat
Copy link
Contributor

I think simply adding a .nojekyll file here would solve this problem! The paths are correct!

https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/

cooljeanius added a commit to cooljeanius/my_tweetback_archive that referenced this issue Mar 22, 2024
@cooljeanius
Copy link
Author

I think simply adding a .nojekyll file here would solve this problem! The paths are correct!

github.blog/2009-12-29-bypassing-jekyll-on-github-pages

OK, this seems to have worked for my particular usecase, thanks! I think it's still worth keeping this issue open for migrating Tweetback to Pagefind 1.0, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants