Remove godocref from front matter (#1543)

These references haven't been visible for years.

Related to:
- https://github.com/gohugoio/gohugoioTheme/issues/24
- https://github.com/gohugoio/gohugoioTheme/pull/216
This commit is contained in:
Joe Mooring
2021-10-13 19:03:25 -07:00
committed by GitHub
parent 8ec3d59483
commit 6f0ba95935
131 changed files with 8 additions and 165 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
---
linktitle: ""
description: ""
godocref: ""
publishdate: ""
lastmod: ""
categories: []
@@ -10,4 +9,4 @@ weight: 00
slug: ""
aliases: []
toc: false
---
---
+1 -2
View File
@@ -1,7 +1,6 @@
---
linktitle: ""
description: ""
godocref: ""
publishdate: ""
lastmod: ""
categories: [functions]
@@ -14,4 +13,4 @@ aliases: []
relatedfuncs: []
toc: false
deprecated: false
---
---
@@ -2,7 +2,6 @@
title: Shortcodes
linktitle:
description: Shortcodes are simple snippets inside your content files calling built-in or custom templates.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2019-11-07
-1
View File
@@ -1,7 +1,6 @@
---
title: .GetPage
description: "Gets a `Page` of a given `path`."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .RenderString
description: "Renders markup to HTML."
godocref:
date: 2019-12-18
categories: [functions]
menu:
-1
View File
@@ -2,7 +2,6 @@
title: Functions Quick Reference
linktitle: Functions Quick Reference
description: Comprehensive list of Hugo templating functions, including basic and advanced usage examples.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: absLangURL
description: Adds the absolute URL with correct language prefix according to site configuration for multilingual.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: absURL
description: Creates an absolute URL based on the configured baseURL.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .AddDate
description: Returns the time corresponding to adding the given number of years, months, and days passed to the function.
godocref: https://golang.org/pkg/time/#Time.AddDate
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: after
description: "`after` slices an array to only the items after the <em>N</em>th item."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: apply
description: Given a map, array, or slice, `apply` returns a new slice with a function applied over it.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: base64
description: "`base64Encode` and `base64Decode` let you easily decode content with a base64 encoding and vice versa through pipes."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: chomp
toc: true
description: Removes any trailing newline characters.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: countrunes
description: Determines the number of runes in a string excluding any whitespace.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: countwords
description: Counts the number of words in a string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: time.Format
description: Converts a date/time to a localized string.
godocref: https://golang.org/pkg/time/
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: default
description: Allows setting a default value that can be returned if a first value is not set.
qref: "Returns a default value if a value is not set when checked."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: delimit
description: Loops through any array, slice, or map and returns a string of all the values separated by a delimiter.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: dict
description: Creates a dictionary from a list of key and value pairs.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-26
-1
View File
@@ -1,7 +1,6 @@
---
title: echoParam
description: Prints a parameter if it is set.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: emojify
description: Runs a string through the Emoji emoticons processor.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: eq
linktitle: eq
description: Returns the boolean truth of arg1 == arg2.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
+1 -2
View File
@@ -3,7 +3,6 @@ title: "fileExists"
linktitle: "fileExists"
date: 2017-08-31T22:38:22+02:00
description: Checks whether a file exists under the given path.
godocref:
publishdate: 2017-08-31T22:38:22+02:00
lastmod: 2017-08-31T22:38:22+02:00
categories: [functions]
@@ -26,4 +25,4 @@ aliases: []
{{- end }}
```
In the example above, a banner from the `static` folder should be shown if the given path points to an existing file.
In the example above, a banner from the `static` folder should be shown if the given path points to an existing file.
-1
View File
@@ -1,7 +1,6 @@
---
title: findRE
description: Returns a list of strings that match the regular expression.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: first
linktitle: first
description: "Slices an array to only the first _N_ elements."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: float
linktitle: float
description: Creates a `float` from the argument passed into the function.
godocref:
date: 2017-09-28
publishdate: 2017-09-28
lastmod: 2017-09-28
-1
View File
@@ -1,7 +1,6 @@
---
title: .Format
description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.Lastmod`---according to Go's layout string.
godocref: https://golang.org/pkg/time/#example_Time_Format
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: ge
linktitle: ge
description: Returns the boolean truth of arg1 >= arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
-5
View File
@@ -1,7 +1,6 @@
---
title: .Get
description: Accesses positional and ordered parameters in shortcode declaration.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -29,7 +28,3 @@ When accessing a named parameter that does not exist, `.Get` returns an empty st
```
[sc]: /templates/shortcode-templates/
-1
View File
@@ -1,7 +1,6 @@
---
title: getenv
description: Returns the value of an environment variable.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: gt
linktitle: gt
description: Returns the boolean truth of arg1 > arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
-1
View File
@@ -2,7 +2,6 @@
title: hasprefix
linktitle: hasPrefix
description: Tests whether a string begins with prefix.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .HasChildren
description:
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .HasMenuCurrent
description:
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: highlight
linktitle: highlight
description: Takes a string of code and language declaration and uses Chroma to return syntax-highlighted HTML.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: hmac
linktitle: hmac
description: Compute the cryptographic checksum of a message.
godocref:
date: 2020-05-29
publishdate: 2020-05-29
lastmod: 2020-05-29
-1
View File
@@ -2,7 +2,6 @@
title: htmlEscape
linktitle:
description: Returns the given string with the reserved HTML codes escaped.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: htmlUnescape
linktitle: htmlUnescape
description: Returns the given string with HTML escape codes un-escaped.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -2,7 +2,6 @@
title: hugo
linktitle: hugo
description: The `hugo` function provides easy access to Hugo-related data.
godocref:
date: 2019-01-31
publishdate: 2019-01-31
lastmod: 2019-01-31
@@ -50,4 +49,3 @@ hugo.IsProduction
{{% note "Use the Hugo Generator Tag" %}}
We highly recommend using `hugo.Generator` in your website's `<head>`. `hugo.Generator` is included by default in all themes hosted on [themes.gohugo.io](https://themes.gohugo.io). The generator tag allows the Hugo team to track the usage and popularity of Hugo.
{{% /note %}}
-1
View File
@@ -2,7 +2,6 @@
title: humanize
linktitle:
description: Returns the humanized version of an argument with the first letter capitalized.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: i18n
linktitle: i18n
description: Translates a piece of content based on your i18n configuration files.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: Image Functions
description: The images namespace provides a list of filters and other image related functions.
godocref:
date: 2017-02-01
categories: [functions]
aliases: [/functions/imageconfig/]
-1
View File
@@ -2,7 +2,6 @@
title: in
linktitle:
description: Checks if an element is in an array or slice--or a substring in a string---and returns a boolean.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: index
linktitle: index
description: Looks up the index(es) or key(s) of the data structure passed into it.
godocref: https://golang.org/pkg/text/template/#hdr-Functions
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: int
linktitle: int
description: Creates an `int` from the argument passed into the function.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: intersect
linktitle: intersect
description: Returns the common elements of two arrays or slices, in the same order as the first array.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .IsMenuCurrent
description:
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -2,7 +2,6 @@
title: isset
linktitle: isset
description: Returns true if the parameter is set.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -29,4 +28,3 @@ Takes either a slice, array, or channel and an index or a map and a key as input
All site-level configuration keys are stored as lower case. Therefore, a `myParam` key-value set in your [site configuration file](/getting-started/configuration/) needs to be accessed with `{{if isset .Site.Params "myparam"}}` and *not* with `{{if isset .Site.Params "myParam"}}`. Note that you can still access the same config key with `.Site.Params.myParam` *or* `.Site.Params.myparam`, for example, when using [`with`](/functions/with).
This restriction also applies when accessing page-level front matter keys from within [shortcodes](/content-management/shortcodes/).
{{% /warning %}}
-1
View File
@@ -2,7 +2,6 @@
title: jsonify
linktitle: jsonify
description: Encodes a given object to JSON.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-04-13
-1
View File
@@ -1,7 +1,6 @@
---
title: lang.Merge
description: "Merge missing translations from other languages."
godocref: ""
date: 2018-03-16
categories: [functions]
keywords: [multilingual]
-1
View File
@@ -2,7 +2,6 @@
title: last
linktitle: last
description: "slices an array to only the last <em>N</em>th elements."
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: le
linktitle: le
description: Returns the boolean truth of arg1 <= arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
-1
View File
@@ -2,7 +2,6 @@
title: len
linktitle: len
description: Returns the length of a variable according to its type.
godocref: https://golang.org/pkg/builtin/#len
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-18
-1
View File
@@ -2,7 +2,6 @@
title: lower
linktitle: lower
description: Converts all characters in the provided string to lowercase.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: lt
linktitle: lt
description: Returns the boolean truth of arg1 < arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
+1 -2
View File
@@ -2,7 +2,6 @@
title: markdownify
linktitle: markdownify
description: Runs the provided string through the Markdown processor.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -27,4 +26,4 @@ aliases: []
*Note*: if you need [Render Hooks][], which `markdownify` doesn't currently
support, use [.RenderString](/functions/renderstring/) instead.
[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks
[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks
-1
View File
@@ -1,7 +1,6 @@
---
title: Math
description: Hugo provides mathematical operators in templates.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-02-23
-1
View File
@@ -2,7 +2,6 @@
title: md5
linktitle: md5
description: hashes the given input and returns its MD5 checksum.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: ne
linktitle: ne
description: Returns the boolean truth of arg1 != arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
-1
View File
@@ -2,7 +2,6 @@
title: now
linktitle: now
description: Returns the current local time
godocref: https://godoc.org/time#Time
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
-1
View File
@@ -1,7 +1,6 @@
---
title: os.Stat
description: Gets a file information of a given path.
godocref:
date: 2018-08-07
publishdate: 2018-08-07
lastmod: 2018-08-07
-1
View File
@@ -1,7 +1,6 @@
---
title: .Param
description: Calls page or site variables into your template.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
-1
View File
@@ -2,7 +2,6 @@
title: partialCached
linktitle: partialCached
description: Allows for caching of partials that do not need to be re-rendered on every invocation.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: path.Base
description: Base returns the last element of a path.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: path.Dir
description: Dir returns all but the last element of a path.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: path.Ext
description: Ext returns the file name extension of a path.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: path.Join
description: Join path elements into a single path.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: path.Split
description: Split path immediately following the final slash.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -2,7 +2,6 @@
title: plainify
linktitle: plainify
description: Strips any HTML and returns the plain text version of the provided string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
-2
View File
@@ -2,7 +2,6 @@
title: pluralize
linktitle: pluralize
description: Pluralizes the given word according to a set of common English pluralization rules
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -22,4 +21,3 @@ aliases: []
```
{{ "cat" | pluralize }} → "cats"
```
-1
View File
@@ -2,7 +2,6 @@
title: print
linktitle: print
description: Prints the default representation of the given arguments using the standard `fmt.Print` function.
godocref: https://golang.org/pkg/fmt/
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: printf
linktitle: printf
description: Formats a string using the standard `fmt.Sprintf` function.
godocref: https://golang.org/pkg/fmt/
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: println
linktitle: println
description: Prints the default representation of the given argument using the standard `fmt.Print` function and enforces a linebreak.
godocref: https://golang.org/pkg/fmt/
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -10,7 +10,6 @@ menu:
docs:
parent: "functions"
keywords: [urls]
godocref:
signature: ["querify KEY VALUE [KEY VALUE]...", "querify COLLECTION"]
hugoversion:
deprecated: false
-1
View File
@@ -2,7 +2,6 @@
title: range
linktitle:
description: Iterates over a map, array, or slice.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -1,7 +1,6 @@
---
title: readDir
description: Gets a directory listing from a directory relative to the current working directory.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -27,4 +26,3 @@ If your current project working directory has a single file named `README.txt`:
For more information on using `readDir` and `readFile` in your templates, see [Local File Templates][local].
[local]: /templates/files/
-1
View File
@@ -1,7 +1,6 @@
---
title: readFile
description: Reads a file from disk relative to the current project working directory and returns a string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
-1
View File
@@ -2,7 +2,6 @@
title: ref
linktitle: ref
description: Returns the absolute permalink to a page.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-09-05
-1
View File
@@ -1,7 +1,6 @@
---
title: reflect.IsMap
description: Reports if a value is a map.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: reflect.IsSlice
description: Reports if a value is a slice.
godocref:
date: 2018-11-28
publishdate: 2018-11-28
lastmod: 2018-11-28
-1
View File
@@ -1,7 +1,6 @@
---
title: relLangURL
description: Adds the relative URL with correct language prefix according to site configuration for multilingual.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: relref
linktitle: relref
description: Returns the relative permalink to a page.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-09-05
-1
View File
@@ -1,7 +1,6 @@
---
title: relURL
description: Creates a baseURL-relative URL.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .Render
description: Takes a view to apply when rendering content.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -1,7 +1,6 @@
---
title: replace
description: Replaces all occurrences of the search string with the replacement string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-09-07
@@ -27,4 +26,3 @@ The number of replacements can be limited with an optional `LIMIT` parameter.
{{ replace "aabbaabb" "a" "z" 2 }} → "zzbbaabb"
```
-1
View File
@@ -1,7 +1,6 @@
---
title: replaceRE
description: Replaces all occurrences of a regular expression with the replacement pattern.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2020-09-07
-2
View File
@@ -1,7 +1,6 @@
---
title: safeCSS
description: Declares the provided string as a known "safe" CSS string.
godocref: https://golang.org/src/html/template/content.go?s=919:929#L15
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-26
@@ -33,4 +32,3 @@ Example: Given `style = "color: red;"` defined in the front matter of your `.md`
{{% note "ZgotmplZ" %}}
"ZgotmplZ" is a special value that indicates that unsafe content reached a CSS or URL context.
{{% /note %}}
-1
View File
@@ -2,7 +2,6 @@
title: safeHTML
# linktitle:
description: Declares a provided string as a "safe" HTML document to avoid escaping by Go templates.
godocref: https://golang.org/src/html/template/content.go?s=1374:1385#L25
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -2,7 +2,6 @@
title: safeHTMLAttr
# linktitle: safeHTMLAttr
description: Declares the provided string as a safe HTML attribute.
godocref: https://golang.org/src/html/template/content.go?s=1661:1676#L33
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -29,4 +28,3 @@ Example: Given a site-wide `config.toml` that contains this menu entry:
* <span class="bad">`<a href="{{ .URL }}">` &rarr; `<a href="#ZgotmplZ">`</span>
* <span class="good">`<a {{ printf "href=%q" .URL | safeHTMLAttr }}>` &rarr; `<a href="irc://irc.freenode.net/#golang">`</span>
-2
View File
@@ -2,7 +2,6 @@
title: safeJS
# linktitle:
description: Declares the provided string as a known safe JavaScript string.
godocref: https://golang.org/src/html/template/content.go?s=2548:2557#L51
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -28,4 +27,3 @@ Example: Given `hash = "619c16f"` defined in the front matter of your `.md` file
* <span class="good">`<script>var form_{{ .Params.hash | safeJS }};…</script>` &rarr; `<script>var form_619c16f;…</script>`</span>
* <span class="bad">`<script>var form_{{ .Params.hash }};…</script>` &rarr; `<script>var form_"619c16f";…</script>`</span>
-1
View File
@@ -1,7 +1,6 @@
---
title: safeURL
description: Declares the provided string as a safe URL or URL substring.
godocref: https://golang.org/pkg/html/template/#HTMLEscape
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -1,7 +1,6 @@
---
title: .Scratch
description: Acts as a "scratchpad" to store and manipulate data.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: seq
# linktitle:
description: Creates a sequence of integers.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: sha
# linktitle: sha
description: Hashes the given input and returns either an SHA1 or SHA256 checksum.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-1
View File
@@ -2,7 +2,6 @@
title: shuffle
# linktitle:
description: Returns a random permutation of a given array or slice.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
-2
View File
@@ -2,7 +2,6 @@
title: singularize
# linktitle: singularize
description: Converts a word according to a set of common English singularization rules.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -22,4 +21,3 @@ aliases: []
`{{ "cats" | singularize }}` → "cat"
See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names.
-3
View File
@@ -2,7 +2,6 @@
title: site
linktitle: site
description: The `site` function provides global access to the same data as the `.Site` page method.
godocref:
date: 2021-02-11
publishdate: 2021-02-11
lastmod: 2021-02-11
@@ -22,5 +21,3 @@ aliases: []
---
`site` is a global function which returns the same data as the `.Site` page method. See: [Site Variables]({{< relref "/variables/site" >}}).
-1
View File
@@ -2,7 +2,6 @@
title: slice
# linktitle: slice
description: Creates a slice (array) of all passed arguments.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
-2
View File
@@ -2,7 +2,6 @@
title: slicestr
# linktitle:
description: Creates a slice of a half-open range, including start and end indices.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -24,4 +23,3 @@ The `end` index can be omitted; it defaults to the string's length.
* `{{slicestr "BatMan" 3}}` → "Man"
* `{{slicestr "BatMan" 0 3}}` → "Bat"
-2
View File
@@ -2,7 +2,6 @@
title: sort
# linktitle: sort
description: Sorts maps, arrays, and slices and returns a sorted slice.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
@@ -62,4 +61,3 @@ Authors: {{ range sort .Site.Params.authors "lastName" "desc" }}{{ .lastName }}
→ Outputs Authors: Perkins Linsley Bergevin
```

Some files were not shown because too many files have changed in this diff Show More