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.53k stars 945 forks source link

Compile error when the same taxonomy tag is used twice with different case #2494

Open kuon opened 4 months ago

kuon commented 4 months ago

Bug Report

Environment

Zola version: 0.18

Expected Behavior

It should compile.

Current Behavior

Error is thrown:

Error: Reason: Failed to render 'vods.html'
Error: Reason: Function call 'get_taxonomy_term' failed
Error: Reason: `get_taxonomy_term_by_name` received an unknown taxonomy as kind: games

Step to reproduce

Configure a taxonomy,:

taxonomies = [
  {name = "games"}
]

Create two pages with the following front:

+++
title = "A"
[taxonomies]
games = ["League of legends"]
+++
+++
title = "B"
[taxonomies]
games = ["League of Legends"]
+++

(notice capitalization difference of Legends)

Keats commented 4 months ago

The error is happening in the template, what does vods.html looks like?