getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.56k stars 946 forks source link

Error: `search` for default language is specified twice #2467

Open kh4rit opened 6 months ago

kh4rit commented 6 months ago

Bug Report

Environment

Zola version: 0.18.0

Expected Behavior

$ zola build should build the website without errors.

Current Behavior

Upon $ zola build the following error is raised:

Error: Failed to build the site
Error: `search` for default language is specified twice, as Search { include_title: true, include_content: true, truncate_content_length: None, include_description: false, include_path: false, index_format: ElasticlunrJson } and Search { include_title: true, include_content: true, truncate_content_length: None, include_description: false, include_path: false, index_format: ElasticlunrJavascript }.

Step to reproduce

  1. Create a new project with $ zola init, agree to activation of search index.
  2. Add the following lines to config.toml:
    search.index_format = "elasticlunr_json"
    [languages.en.translations]
  3. Run $ zola build.
DevOpsCraftsman commented 4 months ago

Same issue here…

@kh4rit Di you find a counter-measure for it in the meanwhile?