Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Sep 27, 2024
1 parent 1f2275c commit d37fb67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/docs/plugins/inputpath-to-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ The above all render as the following in your output:
<a href="/my-template/">Home</a>
```

- The paths used here should be [relative to the input directory](/docs/config/#input-directory) though they _can_ be relative to the project root (the former is simpler and more robust).
- The paths used here can be relative to:
- [the input directory](/docs/config/#input-directory)
- the current template path {% addedin "3.0.0-alpha.19" %}
- to the project root (you’ll regret this if your input directory ever changes 😅)
- As this transform is implicit it _does not_ error when an inputPath match is not found—it only returns the original URL string.
- When pointing to a [**Pagination template**](/docs/pagination/), the first URL in the pagination set is returned.

Expand Down

0 comments on commit d37fb67

Please sign in to comment.