From: Dan Allen Date: Mon, 16 Aug 2021 08:25:23 +0000 (-0600) Subject: add tip about using site.path to create a root-relative URL for a page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4a3e2e7cb983b7a9fff9da3080b0132603378210;p=eg-antora.git add tip about using site.path to create a root-relative URL for a page --- diff --git a/docs/modules/ROOT/pages/templates.adoc b/docs/modules/ROOT/pages/templates.adoc index 39a259b..f2c0fce 100644 --- a/docs/modules/ROOT/pages/templates.adoc +++ b/docs/modules/ROOT/pages/templates.adoc @@ -40,7 +40,8 @@ s| [[site]]site | site.path | The pathname (i.e., subpath) of the site.url under which the site is hosted (e.g., /docs). This value is empty if site.url is not defined, has no path segment, or matches /. -Can be removed from the site.url value using a helper (e.g., `deleteSuffix site.url site.path`) +Can be dropped from the site.url value using a helper (e.g., `deleteSuffix site.url site.path`) +Can be prepended to `page.url` to create a root-relative URL for a page (e.g., `+{{{site.path}}}{{{page.url}}}+`). (since Antora 2.1) | site.title