From 18ae36c3a4ed8c27ddb4633d69f712f06defcb89 Mon Sep 17 00:00:00 2001 From: Tirthankar Mazumder <63574588+wermos@users.noreply.github.com> Date: Fri, 3 May 2024 23:59:31 +0530 Subject: [PATCH] Update overview.md (#2486) Code snippet the search path to make it look more aesthetic --- docs/content/documentation/templates/overview.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 49a7d1f886..bd5fe24a62 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -123,11 +123,11 @@ logic applies. 1. The base directory is the Zola root directory, where the `config.toml` is 2. For the given path: if it starts with `@/`, replace that with `content/` instead and trim any leading `/` 3. Search in the following locations in this order, returning the first where the file exists: - 1. $base_directory + $path - 2. $base_directory + "static/" + $path - 3. $base_directory + "content/" + $path - 4. $base_directory + $output_path + $path - 5. $base_directory + "themes" + $theme + "static/" + $path (only if using a theme) + 1. `$base_directory` + `$path` + 2. `$base_directory` + `"static/"` + `$path` + 3. `$base_directory` + `"content/"` + `$path` + 4. `$base_directory` + `$output_path` + `$path` + 5. `$base_directory` + `"themes"` + `$theme` + `"static/"` + `$path` (only if using a theme) In practice this means that `@/some/image.jpg`, `/content/some/image.jpg` and `content/some/image.jpg` will point to the same thing.