From 0f70914c1b8c9e0026e8697886d56f296843b83e Mon Sep 17 00:00:00 2001 From: Ben Furfie Date: Sun, 28 Jul 2019 09:32:47 +0100 Subject: [PATCH 1/2] Add details of --force flag to clear:site command --- content/collections/docs/installing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0e1185c38cf20a979755782c41babc5e58542dd5 Mon Sep 17 00:00:00 2001 From: Ben Furfie Date: Sun, 28 Jul 2019 09:38:01 +0100 Subject: [PATCH 2/2] Add info about ability to use first modifier in array --- content/collections/modifiers/first.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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