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
Search Doesn't (Always?) Appear on GitHub Pages #70
Comments
This'll be a result of GitHub Pages not serving urls that start with Line 34 in 1fe10e9
Then update the css/js on the page to Lines 271 to 272 in 1fe10e9
|
(NB: This is probably a change worth contributing to |
That makes sense; I forgot that Pages is built around Jekyll. I'll experiment with this tomorrow and report back. Thanks! |
Good news! The search box now pops up and searches. Again, thanks. Bad news? I'll try to run down where it might come from, but it looks like the |
Ah yes, I see why that happens. Two options here:
The latter would look something like new PagefindUI({
...
processResult: function (result) {
result.url = `/pathprefix${result.url}`;
return result;
}
...
});
`` |
Excellent. I needed to wrap the prefix-ing in an Might there be a way to read the path prefix in |
@jcolag a PR would be really welcome if you find how to make it. I don't remember if it was planned to have |
The suggestion above from @bglw works, but I wasn't sure at first how to implement it.
To clarify for more inexperienced folks like myself, this looks like replacing line 34 of tweetback/eleventy.config.js with:
|
With the help of @CarwilB's comment, I managed to fix search on my page like this: anitagraser@472b265 |
An alternative is to create an empty file called cf. https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ |
Thank you! The .nojekyll trick worked a charm for me. |
I deployed my archive to GitHub Pages and it looks good except for the search box not appearing. Digging into the console, the browser tells me...
The URL does, in fact, show a "Tweet not found" page, but I can see
_pagefind/pagefind-ui.js
and its associated files in the repository. The page itself uses a relative URL (/twitter/_pagefind/pagefind-ui.js
), but you presumably already know that.Is this a small bug for the edge case of using a big company's hosting to avoid a big company's hosting? Does this result from my fouling up something in the configuration? Or is it just a limitation of GitHub Pages that it doesn't correctly deploy thousands of files or deploying files in folders prefaced by underscore characters?
Thanks!
The text was updated successfully, but these errors were encountered: