diff --git a/archetypes/functions.md b/archetypes/functions.md index cc9b02b36..c2bb3113e 100644 --- a/archetypes/functions.md +++ b/archetypes/functions.md @@ -1,16 +1,12 @@ --- linktitle: "" description: "" -publishdate: "" -lastmod: "" categories: [functions] tags: [] ns: "" signature: [] -workson: [] hugoversion: "" aliases: [] relatedfuncs: [] toc: false -deprecated: false --- diff --git a/content/en/functions/replace.md b/content/en/functions/replace.md index 931401bd5..f5c2914b6 100644 --- a/content/en/functions/replace.md +++ b/content/en/functions/replace.md @@ -8,7 +8,7 @@ categories: [functions] menu: docs: parent: "functions" -keywords: [] +keywords: [replace] signature: ["strings.Replace INPUT OLD NEW [LIMIT]", "replace INPUT OLD NEW [LIMIT]"] workson: [] hugoversion: diff --git a/content/en/functions/replacere.md b/content/en/functions/replacere.md index ea43b2e81..cc4eb5dc2 100644 --- a/content/en/functions/replacere.md +++ b/content/en/functions/replacere.md @@ -5,7 +5,7 @@ categories: [functions] menu: docs: parent: functions -keywords: [regex] +keywords: [replace regex] signature: - "replaceRE PATTERN REPLACEMENT INPUT [LIMIT]" - "strings.ReplaceRE PATTERN REPLACEMENT INPUT [LIMIT]" diff --git a/content/en/functions/strings.FirstUpper.md b/content/en/functions/strings.FirstUpper.md new file mode 100644 index 000000000..b97d00f29 --- /dev/null +++ b/content/en/functions/strings.FirstUpper.md @@ -0,0 +1,14 @@ +--- +title: strings.FirstUpper +description: Capitalizes the first character of a given string. +categories: [functions] +menu: + docs: + parent: "functions" +keywords: [strings capitalize uppercase first] +signature: ["strings.FirstUpper STRING"] +hugoversion: +aliases: [] +--- + + {{ strings.FirstUpper "foo" }} → "Foo"