Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion content/collections/docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ If you'd like to support multiple languages, head over to [Localization][localiz

If you have used Statamic before and know what you're doing, you can choose to clear the default content, storage, settings, theme, assets, and/or users.

Run `php please clear:site` inside your Statamic directory to initiate the clear process. You will be prompted to choose which data you would like to clear.
Run `php please clear:site` inside your Statamic directory to initiate the clear process. You will be prompted to choose which data you would like to clear. If you want to delete everything and start fresh, it's also possible to skip the prompts and wipe everything using `php please clear:site --force`.
21 changes: 21 additions & 0 deletions content/collections/modifiers/first.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ types:
- utility
id: 3ef1e731-742e-48c2-81f0-6fa916ecda0a
---

## String
Returns the first X characters of a string, where X is any positive integer.

```.language-yaml
Expand All @@ -18,3 +20,22 @@ title: 2015 Year Books Photos
```.language-output
2015
```

## Array

Returns the first item of an array.

```.language-yaml
meat:
- Bacon
- Steak
- Fillet
```

```
{{ meat | first }}
```

```.language-output
Bacon
```