Skip to content

Zola build error if site has no title #589

Description

@JVimes

System information

I get the following error if there's no main title variable in config.toml:

Error: Failed to build the site
Error: Failed to render section '\?\C:\Users\foo\Desktop\Website\content_index.md'
Error: Reason: Failed to render 'index.html' (error happened in 'base.html').
Error: Reason: Tried to concat a value that is not a string or a number from ident prefix

This is the situation after going through First Steps with Zola. I think it's probably worth supporting sites without titles.

Zola version: 0.21.0
tabi version or commit: 886aa59

Expected behaviour

No error.

Actual behaviour

There's an error.

Steps to reproduce

  1. Create a fresh Zola site with a minimal config.toml file that has tabi:

    base_url = "https://ponderosagames.com"
    theme = "tabi"
  2. Run zola serve

Additional context

No response

Final checklist

  • I've checked that the issue isn't already reported.
  • I've tested with the latest version of tabi to check if the issue has already been fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions