Skip to content

Compatibility with Zola 0.22 and Giallo syntax highlighting #611

@zokier

Description

@zokier

System information

Zola version: 0.22.0
tabi version: 689934e

Expected behaviour

Creating new site using tabi-start and running zola serve should just work.

Ideally tabi would support dark and light mode syntax highlighting themes

Actual behaviour

$ zola serve
Building site...
ERROR Failed to serve the site
ERROR TOML parse error at line 32, column 1
   |
32 | highlight_code = true
   | ^^^^^^^^^^^^^^
unknown field `highlight_code`, expected one of `highlighting`, `render_emoji`, `external_links_class`, `external_links_target_blank`, `external_links_no_follow`, `external_links_no_referrer`, `external_links_external`, `smart_punctuation`, `definition_list`, `bottom_footnotes`, `lazy_async_image`, `insert_anchor_links`, `github_alerts`

Steps to reproduce

  1. git clone --recursive https://github.com/welpo/tabi-start.git
  2. cd tabi-start
  3. zola serve

Additional context

Zola changed their code syntax highlighting system which requires different configuration. See Zolas changelog for details: https://github.com/getzola/zola/blob/master/CHANGELOG.md

Even after changing config.toml to the new format, I'm not sure if the syntax highlighting is working completely right. Changing the highlighting theme in config.toml doesn't seem to have any effect. Presumably some changes are needed so that the Giallo CSS files are picked up properly.

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 working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions