Merge commit '5a83bf314f4c0ce1d61341e0a1df21c9998e8154'

This commit is contained in:
Bjørn Erik Pedersen 2018-12-21 09:45:41 +01:00
commit 6f069e549b
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
4 changed files with 6 additions and 7 deletions

View 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 >}}

View 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"

View 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"

View 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.