From 5d9c7327fd3d6df8c53c7aaff922d6be260b80c0 Mon Sep 17 00:00:00 2001 From: Benjamin Petersen Date: Sun, 9 Dec 2018 17:59:29 -0700 Subject: [PATCH 1/5] Fix shortcode example escape chars --- content/en/templates/shortcode-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index e6dca1ccf..cfe0d316b 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -37,7 +37,7 @@ To create a shortcode, place an HTML template in the `layouts/shortcodes` direct You can organize your shortcodes in subfolders, e.g. in `layouts/shortcodes/boxes`. These shortcodes would then be accessible with their relative path, e.g: ``` -{{/*< boxes/square >*/}} +{{}} ``` Note the forward slash. From f1f9b7cd63b275e7b73d1523402d21dcd81ab5bc Mon Sep 17 00:00:00 2001 From: Jan Ulrich Hasecke Date: Fri, 7 Dec 2018 09:16:38 +0100 Subject: [PATCH 2/5] Arguments in example --- content/en/functions/strings.TrimLeft.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/strings.TrimLeft.md b/content/en/functions/strings.TrimLeft.md index 246facd62..d42c57e06 100644 --- a/content/en/functions/strings.TrimLeft.md +++ b/content/en/functions/strings.TrimLeft.md @@ -20,7 +20,7 @@ aliases: [] Given the string `"abba"`, leading `"a"`'s can be removed a follows: - {{ strings.TrimLeft "abba" "a" }} → "bba" + {{ strings.TrimLeft "a" "abba" }} → "bba" Numbers can be handled as well: From 0982f65c1562cbb2f70e9e0933e7c54ff6435efa Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Thu, 13 Dec 2018 17:12:36 -0500 Subject: [PATCH 3/5] Fix the order of arguments to strings.TrimRight --- content/en/functions/strings.TrimRight.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/functions/strings.TrimRight.md b/content/en/functions/strings.TrimRight.md index 44cb9edcf..2c6040218 100644 --- a/content/en/functions/strings.TrimRight.md +++ b/content/en/functions/strings.TrimRight.md @@ -20,9 +20,9 @@ aliases: [] Given the string `"abba"`, trailing `"a"`'s can be removed a follows: - {{ strings.TrimRight "abba" "a" }} → "abb" + {{ strings.TrimRight "a" "abba" }} → "abb" Numbers can be handled as well: - {{ strings.TrimRight 1221 "12" }} → "" + {{ strings.TrimRight 12 1221341221 }} → "122134" From 0d45ea9cf90d1943cc3950774052e8d78e8021e1 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Thu, 13 Dec 2018 17:14:03 -0500 Subject: [PATCH 4/5] Fix order of arguments in another strings.TrimLeft example --- content/en/functions/strings.TrimLeft.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/en/functions/strings.TrimLeft.md b/content/en/functions/strings.TrimLeft.md index d42c57e06..6bbd62cf5 100644 --- a/content/en/functions/strings.TrimLeft.md +++ b/content/en/functions/strings.TrimLeft.md @@ -24,5 +24,4 @@ Given the string `"abba"`, leading `"a"`'s can be removed a follows: Numbers can be handled as well: - {{ strings.TrimLeft 1221 "12" }} → "" - + {{ strings.TrimLeft 12 1221341221 }} → "341221" From bd91d1cfddf87fa693c1e2e7a2de555d2cee19f3 Mon Sep 17 00:00:00 2001 From: Harry Weppner Date: Tue, 18 Dec 2018 00:53:33 -0800 Subject: [PATCH 5/5] Fix typo --- content/en/content-management/syntax-highlighting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/content-management/syntax-highlighting.md b/content/en/content-management/syntax-highlighting.md index 841ecbd3d..ea2db4650 100644 --- a/content/en/content-management/syntax-highlighting.md +++ b/content/en/content-management/syntax-highlighting.md @@ -167,7 +167,7 @@ It is also possible to add syntax highlighting with GitHub flavored code fences. ## List of Chroma Highlighting Languages -The full list of Chroma lexers and their aliases (which is the identifier used in the `hightlight` template func or when doing highlighting in code fences): +The full list of Chroma lexers and their aliases (which is the identifier used in the `highlight` template func or when doing highlighting in code fences): {{< chroma-lexers >}}