Add "usage" section in readme.md

This commit is contained in:
TheThomaas 2025-06-08 21:01:18 +02:00
parent 453011285c
commit 03bcb6c08e
2 changed files with 11 additions and 1 deletions

View file

@ -18,6 +18,16 @@ export default function (eleventyConfig) {
};
```
## Usage
Add the extension ".pdf" to the permalink of the template's front matter.
```yaml
---
permalink: "my-file.pdf"
---
```
## Options
The `options` object can contain:

View file

@ -1,6 +1,6 @@
{
"name": "eleventy-plugin-pdf",
"version": "1.0.0",
"version": "1.0.1",
"description": "A plugin for 11ty that generates a pdf file from a template",
"main": "eleventy.config.js",
"type": "module",