Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
147 stars 41 forks source link

Allow disabling search library #110

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

if config search_library is set to false, it should stop loading search scripts

ddogfoodd commented 1 year ago

I think build_search_index = false is the setting for that

eugenesvk commented 1 year ago

Why does search_library then have false as an allowed value?

ddogfoodd commented 1 year ago

Seems that if search_library = false the checks for valid search library strings are not performed. Probably makes the building process a tiny bit faster.

eugenesvk commented 1 year ago

But they are performed :), these are 2 string comparisons and then else

  {%- if search_library == "tinysearch" %}
  {%- elif search_library == "stork" %}
  {%- else %}
ddogfoodd commented 1 year ago

Oh you're right, I was looking at the base.html file.