Squashed 'docs/' changes from d1cf9adc4..bd91d1cfd
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 21 Dec 2018 08:45:41 +0000 (09:45 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 21 Dec 2018 08:45:41 +0000 (09:45 +0100)
bd91d1cfd Fix typo
0d45ea9cf Fix order of arguments in another strings.TrimLeft example
0982f65c1 Fix the order of arguments to strings.TrimRight
f1f9b7cd6 Arguments in example
5d9c7327f Fix shortcode example escape chars

git-subtree-dir: docs
git-subtree-split: bd91d1cfddf87fa693c1e2e7a2de555d2cee19f3

content/en/content-management/syntax-highlighting.md
content/en/functions/strings.TrimLeft.md
content/en/functions/strings.TrimRight.md
content/en/templates/shortcode-templates.md

index 841ecbd3dcca85ddd1e9332961c804ec94e45ee3..ea2db4650aa48d166ae15e25501c727000f7e4c8 100644 (file)
@@ -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 >}}
 
index 246facd620be966731643cd0b7b1a230e8339633..6bbd62cf591770e62118884cbef9aaad2d732cf7 100644 (file)
@@ -20,9 +20,8 @@ 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:
 
-    {{ strings.TrimLeft 1221 "12" }} → ""
-
+    {{ strings.TrimLeft 12 1221341221 }} → "341221"
index 44cb9edcf6eb22e312c4a316f61ac89faa3cc7de..2c60402183cffcb260d0030e81629edcd0b93145 100644 (file)
@@ -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"
 
index e6dca1ccf120c1b6141145b76311cb633c320524..cfe0d316b1d682a944c917012f53c2aa9a143e07 100644 (file)
@@ -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 >*/}}
+{{</* boxes/square */>}}
 ```
 
 Note the forward slash.