Skip to content

Commit

Permalink
Docs: add new method files for blocks and layouts, fix helpers path
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
nilshoerrmann committed Jan 8, 2024
1 parent ee396eb commit 61e86d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ site
└ methods
└ collection.php
└ field.php
└ block.php
└ blocks.php
└ layout.php
└ layouts.php
└ layout-column.php
└ file.php
└ files.php
└ page.php
Expand All @@ -54,12 +59,11 @@ Please see the official docs for more information about the different method typ

# Creating custom helpers

You can also create a `helpers.php` file inside the `methods` folder where you can put custom methods you'd like to have available universally:
You can also create a `helpers.php` file inside the `site` folder where you can put custom methods you'd like to have available universally:

```
site
└ methods
└ helpers.php
└ helpers.php
```

This file will automatically be included and may contain as many global helper functions as needed.
Expand Down

0 comments on commit 61e86d6

Please sign in to comment.