diff --git a/content/collections/docs/installing.md b/content/collections/docs/installing.md index c01609d3..b625b2e1 100644 --- a/content/collections/docs/installing.md +++ b/content/collections/docs/installing.md @@ -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`. \ No newline at end of file diff --git a/content/collections/modifiers/first.md b/content/collections/modifiers/first.md index 4e829e5e..1b3db5bb 100644 --- a/content/collections/modifiers/first.md +++ b/content/collections/modifiers/first.md @@ -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 @@ -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 +``` \ No newline at end of file