站点标题

title键

title 键是必需的。它在剧本的 site 键下配置。

Example 1. Example 1. antora-playbook.yml
site:
  title: Site Title
  url: https://example.org

title 键接受一个字符串,该字符串显示在 UI 调用站点标题的任何地方。也可以从 CLI 中分配标题键。

添加一个站点标题

使用 title 键为站点添加标题。

Example 2. Example 2. antora-playbook.yml
site:
  title: Demo Docs Site

该标题显示在站点 UI 调用该键的任何地方。Antora 的引用 UI 在全局导航栏的左上角显示站点标题。