Skip to content

Conversation

@C-Loftus
Copy link
Contributor

@C-Loftus C-Loftus commented Jan 26, 2025

Tries to display serach outputs on a separate page.

Draft since I don't know how to get this working with single page templates in hugo. If anyone knows how to get this working feel free to edit the PR or take anything from here.

@C-Loftus C-Loftus marked this pull request as draft January 26, 2025 15:39
@C-Loftus C-Loftus mentioned this pull request Jan 26, 2025
@C-Loftus
Copy link
Contributor Author

Trying to link content/search.md with a template in some way. layouts/search.html or layouts/search/single.html both dont work so sort of at a loss.

Essentially just trying to make it so the user:

  1. Enters their query on the navbar
  2. The query is set as query param ?query=X
  3. The user is navigated to localhost/search?query=X
  4. The query is passed to js where it does a lookup in the index.json generated by hugo statically

@TTWNO
Copy link
Member

TTWNO commented Jan 30, 2025

I have not forgotten about this. Just busy. :)

@TTWNO
Copy link
Member

TTWNO commented Feb 14, 2025

Been taking a look at this. I see what you mean about the templates. Something is strange here.

Still looking into it. I have my school break this week, so the goal is to get it done by next weekend.

@C-Loftus
Copy link
Contributor Author

Sounds good. And never any rush with my PRs, take as much time as you want. The goal is just to make something useful for others 😃

@TTWNO TTWNO self-assigned this Feb 26, 2025
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

Successfully merging this pull request may close these issues.

2 participants