Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 2852de9

Browse files
authored
shortcodes: fix typos
fixing typos
1 parent 77931ac commit 2852de9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎assets/js/menutoggle.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Grab any element that has the 'js-toggle' class and add an event listner for the toggleClass function
1+
// Grab any element that has the 'js-toggle' class and add an event listener for the toggleClass function
22
var toggleBtns = document.getElementsByClassName('js-toggle')
33
for (var i = 0; i < toggleBtns.length; i++) {
44
toggleBtns[i].addEventListener('click', toggleClass, false)

‎layouts/_default/_markup/render-link.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
Validates the fragment portion of a link destination.
202202

203203
@context {string} contentPath The page containing the link.
204-
@context {srting} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error.
204+
@context {string} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error.
205205
@context {page} page The page corresponding to the link destination
206206
@context {struct} parsedURL The link destination parsed by urls.Parse.
207207
@context {string} renderHookName The name of the render hook.

‎layouts/shortcodes/include.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
You must call this shortcode using the {{% %}} notation.
55

6-
@param {string} (postional parameter 0) The path to the page, relative to the content directory.
6+
@param {string} (positional parameter 0) The path to the page, relative to the content directory.
77
@returns template.HTML
88

99
@example {{% include "functions/_common/glob-patterns" %}}

‎layouts/shortcodes/list-pages-in-section.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- /*
2-
Renders a desciption list of the pages in the given section.
2+
Renders a description list of the pages in the given section.
33

44
Render a subset of the pages in the section by specifying a predefined filter,
55
and whether to include those pages.

‎layouts/shortcodes/quick-reference.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/*
2-
Renders the child sections of the given top-level section, listing each childs's immediate descendants.
2+
Renders the child sections of the given top-level section, listing each child's immediate descendants.
33

44
@param {string} section The top-level section to render.
55
@returns template.HTML
@@ -11,7 +11,7 @@
1111
{{ with .Get "section" }}
1212
{{ $section = . }}
1313
{{ else }}
14-
{{ errorf "The %q shortcodes requires a 'section' parameter. See %s" .Name .Postion }}
14+
{{ errorf "The %q shortcodes requires a 'section' parameter. See %s" .Name .Position }}
1515
{{ end }}
1616

1717
{{/* Do not change the markdown indentation, and do not remove blank lines. */}}
@@ -33,5 +33,5 @@
3333
{{ end }}
3434
{{ end }}
3535
{{ else }}
36-
{{ errorf "The %q shortcodes was unable to find the %q section. See %s" .Name $section .Postion }}
36+
{{ errorf "The %q shortcodes was unable to find the %q section. See %s" .Name $section .Position }}
3737
{{ end }}

0 commit comments

Comments
 (0)