Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update overview.md #2486

Merged
merged 1 commit into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/content/documentation/templates/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down