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

[performance] Search is creating larger pagesizes because the index is built in #1284

Open
monksy opened this issue Jan 31, 2024 · 0 comments

Comments

@monksy
Copy link

monksy commented Jan 31, 2024

Based on the doc:
https://github.com/christian-fei/Simple-Jekyll-Search

You can generate the search text in a seperate file. I think this would help build times and reduce page sizes.

{% for post in site.posts %} \

There would be a request for the end user to create a generated page:

---
layout: none
---
[
  {% for post in site.posts %}
    {
      "title"    : "{{ post.title | escape }}",
      "category" : "{{ post.category }}",
      "tags"     : "{{ post.tags | join: ', ' }}",
      "url"      : "{{ site.baseurl }}{{ post.url }}",
      "date"     : "{{ post.date }}"
    } {% unless forloop.last %},{% endunless %}
  {% endfor %}
]
monksy added a commit to monksy/beautiful-jekyll that referenced this issue Feb 6, 2024
Speed up search and reduce page sizes.

daattali#1284
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

1 participant