From 4a3e2e7cb983b7a9fff9da3080b0132603378210 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 16 Aug 2021 02:25:23 -0600 Subject: [PATCH] add tip about using site.path to create a root-relative URL for a page --- docs/modules/ROOT/pages/templates.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0