Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Sep 26, 2024
1 parent ded07f2 commit 330f19d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/docs/languages/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,10 @@ In the above example, the data cascade will include a top-level variable `availa

#### `compileOptions.permalink` to Override Permalink Compilation

- _Optional_

This has the same signature as the `compile` function and expects a reusable `render` function to be returned.
_Optional_. This has the same signature as the `compile` function and expects a reusable `render` function to be returned.

```js
// some configuration truncated …
// some configuration truncated …
compileOptions: {
permalink: function(contents, inputPath) {
return (data) => {
Expand All @@ -373,7 +371,7 @@ This has the same signature as the `compile` function and expects a reusable `re
```

- Don’t compile permalink strings in the parent template language
- `permalink: "raw"`
- `permalink: "raw"` (new default in v3.0, related [GitHub #2780](https:/11ty/eleventy/issues/2780))
- Don’t write _any_ files to the file system:
- `permalink: false`
- `permalink: (contents, inputPath) => false`
Expand Down

0 comments on commit 330f19d

Please sign in to comment.