From 4e0bca2b1e1161ad2929408ee324faa1fbdf393e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 16 Jul 2017 15:13:35 +0200 Subject: [PATCH] Remove the needsexamples construct We need to rework the whole template func docs and, while a good idea, this does not fit into that. --- archetypes/functions.md | 1 - content/contribute/documentation.md | 16 +--------------- content/functions/GetPage.md | 1 - content/functions/abslangurl.md | 2 -- content/functions/absurl.md | 1 - content/functions/adddate.md | 1 - content/functions/after.md | 1 - content/functions/apply.md | 1 - content/functions/base64.md | 1 - content/functions/chomp.md | 1 - content/functions/countrunes.md | 1 - content/functions/countwords.md | 1 - content/functions/dateformat.md | 1 - content/functions/default.md | 1 - content/functions/delimit.md | 1 - content/functions/dict.md | 2 -- content/functions/echoparam.md | 1 - content/functions/emojify.md | 1 - content/functions/eq.md | 1 - content/functions/findRe.md | 1 - content/functions/first.md | 1 - content/functions/format.md | 1 - content/functions/get.md | 1 - content/functions/getenv.md | 1 - content/functions/hasPrefix.md | 1 - content/functions/haschildren.md | 2 -- content/functions/hasmenucurrent.md | 2 -- content/functions/highlight.md | 1 - content/functions/htmlEscape.md | 1 - content/functions/htmlUnescape.md | 1 - content/functions/humanize.md | 1 - content/functions/i18n.md | 1 - content/functions/imageConfig.md | 1 - content/functions/in.md | 1 - content/functions/index-function.md | 1 - content/functions/int.md | 1 - content/functions/intersect.md | 1 - content/functions/ismenucurrent.md | 1 - content/functions/isset.md | 1 - content/functions/jsonify.md | 1 - content/functions/last.md | 1 - content/functions/len.md | 1 - content/functions/lower.md | 1 - content/functions/markdownify.md | 1 - content/functions/math.md | 1 - content/functions/md5.md | 1 - content/functions/now.md | 2 -- content/functions/param.md | 1 - content/functions/partialCached.md | 1 - content/functions/plainify.md | 1 - content/functions/pluralize.md | 1 - content/functions/printf.md | 2 -- content/functions/querify.md | 1 - content/functions/range.md | 1 - content/functions/readdir.md | 1 - content/functions/readfile.md | 1 - content/functions/ref.md | 1 - content/functions/relLangURL.md | 2 -- content/functions/relref.md | 1 - content/functions/relurl.md | 1 - content/functions/render.md | 1 - content/functions/replace.md | 1 - content/functions/replacere.md | 1 - content/functions/safeCSS.md | 1 - content/functions/safeHTML.md | 1 - content/functions/safeHTMLAttr.md | 1 - content/functions/safeJS.md | 1 - content/functions/safeURL.md | 1 - content/functions/scratch.md | 1 - content/functions/seq.md | 1 - content/functions/sha.md | 1 - content/functions/shuffle.md | 2 -- content/functions/singularize.md | 1 - content/functions/slice.md | 2 -- content/functions/slicestr.md | 1 - content/functions/sort.md | 1 - content/functions/split.md | 1 - content/functions/string.md | 1 - content/functions/substr.md | 1 - content/functions/time.md | 1 - content/functions/title.md | 1 - content/functions/trim.md | 1 - content/functions/truncate.md | 1 - content/functions/union.md | 1 - content/functions/uniq.md | 1 - content/functions/unix.md | 1 - content/functions/upper.md | 1 - content/functions/urlize.md | 1 - content/functions/where.md | 1 - content/functions/with.md | 1 - layouts/shortcodes/needsexamples.html | 7 ------- themes/gohugoioTheme | 2 +- 92 files changed, 2 insertions(+), 121 deletions(-) delete mode 100644 layouts/shortcodes/needsexamples.html diff --git a/archetypes/functions.md b/archetypes/functions.md index 7700bd2de..0a5dd344f 100644 --- a/archetypes/functions.md +++ b/archetypes/functions.md @@ -14,5 +14,4 @@ aliases: [] relatedfuncs: [] toc: false deprecated: false -needsexamples: true --- \ No newline at end of file diff --git a/content/contribute/documentation.md b/content/contribute/documentation.md index e4fe0f7b9..ed0a11885 100644 --- a/content/contribute/documentation.md +++ b/content/contribute/documentation.md @@ -360,22 +360,8 @@ This is a warning, which should be reserved for *important* information like bre This is a warning, which should be reserved for *important* information like breaking changes. {{% /warning %}} -## Ask for Code Examples - -Sometimes you want to contribute to the docs but don't have enough time to provide lengthy examples. If you want to flag a piece of content as needing more examples, add the following field to your front matter: - -``` -needsexamples: true -``` - -## Places to Start - -The preceding `needsexamples` field is used to generate the following list of flagged content. Links will take you directly to the edit URL for the file within the GitHub GUI in the event that you are not comfortable cloning and editing the repository locally. - -{{< needsexamples >}} - {{% note "Pull Requests and Branches" %}} -Similar to [contributing to Hugo development](/contribute/development/), the Hugo team expects you to create a separate branch/fork when you make your generous contributions to the Hugo docs. +Similar to [contributing to Hugo development](/contribute/development/), the Hugo team expects you to create a separate branch/fork when you make your contributions to the Hugo docs. {{% /note %}} [abe]: https://en.wikipedia.org/wiki/Kobo_Abe diff --git a/content/functions/GetPage.md b/content/functions/GetPage.md index 8505bf2a7..2fe2072a1 100644 --- a/content/functions/GetPage.md +++ b/content/functions/GetPage.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [sections,lists,indexes] -ns: signature: ["GetPage TYPE PATH"] workson: [] hugoversion: diff --git a/content/functions/abslangurl.md b/content/functions/abslangurl.md index 5e1d11522..52b1df4d1 100644 --- a/content/functions/abslangurl.md +++ b/content/functions/abslangurl.md @@ -11,14 +11,12 @@ menu: docs: parent: "functions" #tags: [multilingual,i18n,urls] -ns: signature: ["absLangURL INPUT"] workson: [] hugoversion: relatedfuncs: [relLangURL] deprecated: false aliases: [] -needsexamples: true --- Both `absLangURL` and [`relLangURL`](/functions/rellangurl/) are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl) relatives but will add the correct language prefix when the site is configured with more than one language. diff --git a/content/functions/absurl.md b/content/functions/absurl.md index 5af012b14..ce3355ace 100644 --- a/content/functions/absurl.md +++ b/content/functions/absurl.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [urls] -ns: signature: ["absURL INPUT"] workson: [] hugoversion: diff --git a/content/functions/adddate.md b/content/functions/adddate.md index 309d75114..e95415a0c 100644 --- a/content/functions/adddate.md +++ b/content/functions/adddate.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [dates,time] -ns: signature: ["AddDate YEARS MONTHS DAYS"] workson: [times] hugoversion: diff --git a/content/functions/after.md b/content/functions/after.md index ee664a921..f81d6758f 100644 --- a/content/functions/after.md +++ b/content/functions/after.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [iteration] -ns: signature: ["after INDEX COLLECTION"] workson: [] hugoversion: diff --git a/content/functions/apply.md b/content/functions/apply.md index 7d17f7c35..8bd4a21b6 100644 --- a/content/functions/apply.md +++ b/content/functions/apply.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [advanced] -ns: signature: ["apply COLLETION FUNCTION [PARAM...]"] workson: [] hugoversion: diff --git a/content/functions/base64.md b/content/functions/base64.md index 1b5a3c029..2d64c1d7b 100644 --- a/content/functions/base64.md +++ b/content/functions/base64.md @@ -12,7 +12,6 @@ menu: parent: "functions" #tags: [] relatedfuncs: [] -ns: signature: ["base64Decode INPUT", "base64Encode INPUT"] workson: [] hugoversion: diff --git a/content/functions/chomp.md b/content/functions/chomp.md index a07b3217e..d12e257e8 100644 --- a/content/functions/chomp.md +++ b/content/functions/chomp.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [trim] -ns: signature: ["chomp INPUT"] workson: [] hugoversion: diff --git a/content/functions/countrunes.md b/content/functions/countrunes.md index 303111140..3e62e3132 100644 --- a/content/functions/countrunes.md +++ b/content/functions/countrunes.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [counting, word count] -ns: signature: ["countrunes INPUT"] workson: [] hugoversion: diff --git a/content/functions/countwords.md b/content/functions/countwords.md index c16a186b3..2e4e39930 100644 --- a/content/functions/countwords.md +++ b/content/functions/countwords.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [counting, word count] -ns: signature: ["countwords INPUT"] workson: [] hugoversion: diff --git a/content/functions/dateformat.md b/content/functions/dateformat.md index 2bd243ef6..53bc052bc 100644 --- a/content/functions/dateformat.md +++ b/content/functions/dateformat.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [dates,time,strings] -ns: signature: ["dateFormat LAYOUT INPUT"] workson: [] hugoversion: diff --git a/content/functions/default.md b/content/functions/default.md index 6fc6ed5d0..64036724d 100644 --- a/content/functions/default.md +++ b/content/functions/default.md @@ -13,7 +13,6 @@ menu: docs: parent: "functions" toc: -ns: signature: ["default DEFAULT INPUT"] workson: [] hugoversion: diff --git a/content/functions/delimit.md b/content/functions/delimit.md index 61928ba23..93cd4cb26 100644 --- a/content/functions/delimit.md +++ b/content/functions/delimit.md @@ -13,7 +13,6 @@ menu: parent: "functions" #tags: [iteration] toc: false -ns: signature: ["delimit COLLECTION DELIMIT LAST"] workson: [lists,taxonomies,terms] hugoversion: diff --git a/content/functions/dict.md b/content/functions/dict.md index f151e3eff..4946818e3 100644 --- a/content/functions/dict.md +++ b/content/functions/dict.md @@ -12,14 +12,12 @@ menu: docs: parent: "functions" #tags: [dictionary] -ns: signature: ["dict KEY VALUE [KEY VALUE]..."] workson: [] hugoversion: relatedfuncs: [] deprecated: false aliases: [] -needsexamples: true --- `dict` creates a dictionary `(map[string, interface{})` that expects parameters added in a value:object fashion. diff --git a/content/functions/echoparam.md b/content/functions/echoparam.md index 2bec15840..7e9d53828 100644 --- a/content/functions/echoparam.md +++ b/content/functions/echoparam.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["echoParam DICTIONARY KEY"] workson: [] hugoversion: diff --git a/content/functions/emojify.md b/content/functions/emojify.md index def7f4676..57241661b 100644 --- a/content/functions/emojify.md +++ b/content/functions/emojify.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,emojis] -ns: signature: ["emojify INPUT"] workson: [] hugoversion: diff --git a/content/functions/eq.md b/content/functions/eq.md index 5dc9a1e51..ceadbe0a7 100644 --- a/content/functions/eq.md +++ b/content/functions/eq.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [operators,logic] -ns: signature: ["eq ARG1 ARG2"] workson: [] hugoversion: diff --git a/content/functions/findRe.md b/content/functions/findRe.md index 34cb27520..8b745b569 100644 --- a/content/functions/findRe.md +++ b/content/functions/findRe.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [regex] -ns: signature: ["findRE PATTERN INPUT [LIMIT]"] workson: [] hugoversion: diff --git a/content/functions/first.md b/content/functions/first.md index 7882e87bd..c365a6679 100644 --- a/content/functions/first.md +++ b/content/functions/first.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [iteration] -ns: signature: ["first LIMIT COLLECTION"] workson: [lists,taxonomies,terms,groups] hugoversion: diff --git a/content/functions/format.md b/content/functions/format.md index f14dd19e3..8b501d046 100644 --- a/content/functions/format.md +++ b/content/functions/format.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [dates,time] -ns: signature: ["Format FORMAT"] workson: [times] hugoversion: diff --git a/content/functions/get.md b/content/functions/get.md index 0546359fa..d45f6ed21 100644 --- a/content/functions/get.md +++ b/content/functions/get.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [shortcodes] -ns: signature: ["Get INDEX", "Get KEY"] workson: [] hugoversion: diff --git a/content/functions/getenv.md b/content/functions/getenv.md index bfdcf9183..c8086ac86 100644 --- a/content/functions/getenv.md +++ b/content/functions/getenv.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["getenv VARIABLE"] workson: [] hugoversion: diff --git a/content/functions/hasPrefix.md b/content/functions/hasPrefix.md index a046098c7..79a3033ac 100644 --- a/content/functions/hasPrefix.md +++ b/content/functions/hasPrefix.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["hasPrefix STRING PREFIX"] workson: [] hugoversion: diff --git a/content/functions/haschildren.md b/content/functions/haschildren.md index de6f148f3..c313c17a1 100644 --- a/content/functions/haschildren.md +++ b/content/functions/haschildren.md @@ -12,7 +12,6 @@ menu: parent: "functions" #tags: [menus] toc: -ns: signature: ["HasChildren"] workson: [menus] hugoversion: @@ -20,7 +19,6 @@ relatedfuncs: [] deprecated: false draft: true aliases: [] -needsexamples: true --- Used in [menu templates](/templates/menu-templates/). diff --git a/content/functions/hasmenucurrent.md b/content/functions/hasmenucurrent.md index cce147031..c022f15de 100644 --- a/content/functions/hasmenucurrent.md +++ b/content/functions/hasmenucurrent.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [menus] -ns: signature: ["HasMenuCurrent"] workson: [menus] hugoversion: @@ -20,7 +19,6 @@ deprecated: false toc: false draft: true aliases: [] -needsexamples: true --- Used in [menu templates](/templates/menu-templates/). diff --git a/content/functions/highlight.md b/content/functions/highlight.md index 7b05069c2..12f0111a9 100644 --- a/content/functions/highlight.md +++ b/content/functions/highlight.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [highlighting,pygments,code blocks,syntax] -ns: signature: ["highlight INPUT"] workson: [] hugoversion: diff --git a/content/functions/htmlEscape.md b/content/functions/htmlEscape.md index 995f2c889..a3024194c 100644 --- a/content/functions/htmlEscape.md +++ b/content/functions/htmlEscape.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings, html] -ns: signature: ["htmlEscape INPUT"] workson: [] hugoversion: diff --git a/content/functions/htmlUnescape.md b/content/functions/htmlUnescape.md index 6ab4dca12..b67ffa1c9 100644 --- a/content/functions/htmlUnescape.md +++ b/content/functions/htmlUnescape.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["htmlUnescape INPUT"] workson: [] hugoversion: diff --git a/content/functions/humanize.md b/content/functions/humanize.md index 79b65a22f..8528a31c7 100644 --- a/content/functions/humanize.md +++ b/content/functions/humanize.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,casing] -ns: signature: ["humanize INPUT"] workson: [] hugoversion: diff --git a/content/functions/i18n.md b/content/functions/i18n.md index e642daa74..ac377ffd7 100644 --- a/content/functions/i18n.md +++ b/content/functions/i18n.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [internationalization,i18n,multilingual] -ns: signature: ["i18n KEY", "T KEY"] workson: [] hugoversion: diff --git a/content/functions/imageConfig.md b/content/functions/imageConfig.md index 7f88bff87..204c44b60 100644 --- a/content/functions/imageConfig.md +++ b/content/functions/imageConfig.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [images] -ns: signature: ["imageConfig PATH"] workson: [] hugoversion: diff --git a/content/functions/in.md b/content/functions/in.md index fcd030c6f..cde9567e9 100644 --- a/content/functions/in.md +++ b/content/functions/in.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["in SET ITEM"] workson: [] hugoversion: diff --git a/content/functions/index-function.md b/content/functions/index-function.md index 433f5d818..dcf45751d 100644 --- a/content/functions/index-function.md +++ b/content/functions/index-function.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["index COLLECTION INDEX", "index COLLECTION KEY"] workson: [] hugoversion: diff --git a/content/functions/int.md b/content/functions/int.md index 574f24426..049f7ea01 100644 --- a/content/functions/int.md +++ b/content/functions/int.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,integers] -ns: signature: ["int INPUT"] workson: [] hugoversion: diff --git a/content/functions/intersect.md b/content/functions/intersect.md index a2a09cac7..8b21782a5 100644 --- a/content/functions/intersect.md +++ b/content/functions/intersect.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["intersect SET1 SET2"] workson: [] hugoversion: diff --git a/content/functions/ismenucurrent.md b/content/functions/ismenucurrent.md index 1db910ffb..330996b72 100644 --- a/content/functions/ismenucurrent.md +++ b/content/functions/ismenucurrent.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [menus] -ns: signature: ["IsMenuCurrent"] workson: [menus] hugoversion: diff --git a/content/functions/isset.md b/content/functions/isset.md index d018e5bec..275b6298d 100644 --- a/content/functions/isset.md +++ b/content/functions/isset.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["isset COLLECTION INDEX", "isset COLLECTION KEY"] workson: [] hugoversion: diff --git a/content/functions/jsonify.md b/content/functions/jsonify.md index 0a1e7d8ec..b33deffc5 100644 --- a/content/functions/jsonify.md +++ b/content/functions/jsonify.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,json] -ns: signature: ["jsonify INPUT"] workson: [] hugoversion: diff --git a/content/functions/last.md b/content/functions/last.md index f182de4f2..ff269db3f 100644 --- a/content/functions/last.md +++ b/content/functions/last.md @@ -12,7 +12,6 @@ menu: docs: parent: "functions" toc: -ns: signature: ["last INDEX COLLECTION"] workson: [lists, taxonomies, terms, groups] hugoversion: diff --git a/content/functions/len.md b/content/functions/len.md index 4fcfe18b1..994192c67 100644 --- a/content/functions/len.md +++ b/content/functions/len.md @@ -8,7 +8,6 @@ publishdate: 2017-02-01 lastmod: 2017-04-18 categories: [functions] #tags: [] -ns: signature: ["len INPUT"] workson: [lists,taxonomies,terms] hugoversion: diff --git a/content/functions/lower.md b/content/functions/lower.md index 8a51f7344..c7ec2f9cd 100644 --- a/content/functions/lower.md +++ b/content/functions/lower.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,casing] -ns: signature: ["lower INPUT"] workson: [] hugoversion: diff --git a/content/functions/markdownify.md b/content/functions/markdownify.md index 3b2f62b12..324113fc0 100644 --- a/content/functions/markdownify.md +++ b/content/functions/markdownify.md @@ -11,7 +11,6 @@ categories: [functions] menu: docs: parent: "functions" -ns: signature: ["markdownify INPUT"] workson: [] hugoversion: diff --git a/content/functions/math.md b/content/functions/math.md index 3188e927f..145f808f0 100644 --- a/content/functions/math.md +++ b/content/functions/math.md @@ -12,7 +12,6 @@ menu: docs: parent: "functions" toc: -ns: signature: [] workson: [] hugoversion: diff --git a/content/functions/md5.md b/content/functions/md5.md index feef07d65..8d3c1bc60 100644 --- a/content/functions/md5.md +++ b/content/functions/md5.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["md5 INPUT"] workson: [] hugoversion: diff --git a/content/functions/now.md b/content/functions/now.md index 91664c70b..d0e7edf00 100644 --- a/content/functions/now.md +++ b/content/functions/now.md @@ -11,14 +11,12 @@ menu: docs: parent: "functions" #tags: [dates,time] -ns: signature: ["now"] workson: [] hugoversion: relatedfuncs: [Unix,dateFormat] deprecated: false aliases: [] -needsexamples: true --- `now` returns the current local time as a [`time.Time`](https://godoc.org/time#Time). diff --git a/content/functions/param.md b/content/functions/param.md index aa0f4b876..c7859fca9 100644 --- a/content/functions/param.md +++ b/content/functions/param.md @@ -12,7 +12,6 @@ menu: docs: parent: "functions" toc: -ns: signature: ["Param KEY"] workson: [] hugoversion: diff --git a/content/functions/partialCached.md b/content/functions/partialCached.md index 5f13e9070..68438331a 100644 --- a/content/functions/partialCached.md +++ b/content/functions/partialCached.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["partialCached LAYOUT INPUT [VARIANT...]"] workson: [] hugoversion: diff --git a/content/functions/plainify.md b/content/functions/plainify.md index 482c2430c..2a0f84bff 100644 --- a/content/functions/plainify.md +++ b/content/functions/plainify.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["plainify INPUT"] workson: [] hugoversion: diff --git a/content/functions/pluralize.md b/content/functions/pluralize.md index ce6da31dd..063f5666f 100644 --- a/content/functions/pluralize.md +++ b/content/functions/pluralize.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["pluralize INPUT"] workson: [] hugoversion: diff --git a/content/functions/printf.md b/content/functions/printf.md index 4b8dcdba9..b9338d594 100644 --- a/content/functions/printf.md +++ b/content/functions/printf.md @@ -11,13 +11,11 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["printf FORMAT INPUT"] workson: [] hugoversion: relatedfuncs: [] deprecated: false -needsexamples: true --- `printf` formats a string using the standard `fmt.Sprintf` function. See [the go doc](https://golang.org/pkg/fmt/) for additional information. diff --git a/content/functions/querify.md b/content/functions/querify.md index 824ab31a9..a80a1e8da 100644 --- a/content/functions/querify.md +++ b/content/functions/querify.md @@ -11,7 +11,6 @@ menu: parent: "functions" #tags: [urls] godocref: -ns: signature: ["querify KEY VALUE [KEY VALUE]..."] hugoversion: deprecated: false diff --git a/content/functions/range.md b/content/functions/range.md index f22c0443c..3327768ba 100644 --- a/content/functions/range.md +++ b/content/functions/range.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [iteration] -ns: signature: ["range COLLECTION"] workson: [] hugoversion: diff --git a/content/functions/readdir.md b/content/functions/readdir.md index ba6872166..b23831c37 100644 --- a/content/functions/readdir.md +++ b/content/functions/readdir.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [files] -ns: signature: ["readDir PATH"] workson: [] hugoversion: diff --git a/content/functions/readfile.md b/content/functions/readfile.md index 6fcc4c748..727de13ea 100644 --- a/content/functions/readfile.md +++ b/content/functions/readfile.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [files] -ns: signature: ["readFile PATH"] workson: [] hugoversion: diff --git a/content/functions/ref.md b/content/functions/ref.md index 4df3e734c..d041d56e6 100644 --- a/content/functions/ref.md +++ b/content/functions/ref.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [cross references, anchors] -ns: signature: ["ref PAGE CONTENT"] workson: [] hugoversion: diff --git a/content/functions/relLangURL.md b/content/functions/relLangURL.md index 8c5e3c252..1d1b11fac 100644 --- a/content/functions/relLangURL.md +++ b/content/functions/relLangURL.md @@ -11,14 +11,12 @@ categories: [functions] menu: docs: parent: "functions" -ns: signature: ["relLangURL INPUT"] workson: [] hugoversion: relatedfuncs: [] deprecated: false aliases: [] -needsexamples: true --- `absLangURL` and `relLangURL` functions are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl/) relatives but will add the correct language prefix when the site is configured with more than one language. (See [Configuring Multilingual][multiliconfig].) diff --git a/content/functions/relref.md b/content/functions/relref.md index 2132b57e9..2303c5c63 100644 --- a/content/functions/relref.md +++ b/content/functions/relref.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [cross references, anchors] -ns: signature: ["relref PAGE CONTENT"] workson: [] hugoversion: diff --git a/content/functions/relurl.md b/content/functions/relurl.md index 33c5832cf..6a7e60152 100644 --- a/content/functions/relurl.md +++ b/content/functions/relurl.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [urls] -ns: signature: ["relURL INPUT"] workson: [] hugoversion: diff --git a/content/functions/render.md b/content/functions/render.md index bfed1e749..df89aa641 100644 --- a/content/functions/render.md +++ b/content/functions/render.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [views] -ns: signature: ["render LAYOUT"] workson: [] hugoversion: diff --git a/content/functions/replace.md b/content/functions/replace.md index 933a508c3..31243d725 100644 --- a/content/functions/replace.md +++ b/content/functions/replace.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["replace INPUT OLD NEW"] workson: [] hugoversion: diff --git a/content/functions/replacere.md b/content/functions/replacere.md index 60b9112b5..4e8f2c194 100644 --- a/content/functions/replacere.md +++ b/content/functions/replacere.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [regex] -ns: signature: ["replaceRE PATTERN REPLACEMENT INPUT"] workson: [] hugoversion: diff --git a/content/functions/safeCSS.md b/content/functions/safeCSS.md index 746b05f54..9b762ee30 100644 --- a/content/functions/safeCSS.md +++ b/content/functions/safeCSS.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [style,css,strings] -ns: signature: ["safeCSS INPUT"] workson: [] hugoversion: diff --git a/content/functions/safeHTML.md b/content/functions/safeHTML.md index b15975cb2..1c8205d7a 100644 --- a/content/functions/safeHTML.md +++ b/content/functions/safeHTML.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["safeHTML INPUT"] workson: [] hugoversion: diff --git a/content/functions/safeHTMLAttr.md b/content/functions/safeHTMLAttr.md index eecc2c561..fb76c94e2 100644 --- a/content/functions/safeHTMLAttr.md +++ b/content/functions/safeHTMLAttr.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["safeHTMLAttr INPUT"] workson: [] hugoversion: diff --git a/content/functions/safeJS.md b/content/functions/safeJS.md index d2bb1a5f8..fe75ab004 100644 --- a/content/functions/safeJS.md +++ b/content/functions/safeJS.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["safeJS INPUT"] workson: [] hugoversion: diff --git a/content/functions/safeURL.md b/content/functions/safeURL.md index 01cb7f191..bac073369 100644 --- a/content/functions/safeURL.md +++ b/content/functions/safeURL.md @@ -11,7 +11,6 @@ categories: [functions] menu: docs: parent: "functions" -ns: signature: ["safeURL INPUT"] workson: [] hugoversion: diff --git a/content/functions/scratch.md b/content/functions/scratch.md index e06f627fa..5b9e67f07 100644 --- a/content/functions/scratch.md +++ b/content/functions/scratch.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" toc: -ns: signature: [] workson: [] hugoversion: diff --git a/content/functions/seq.md b/content/functions/seq.md index 32ee1e7c9..83adb7ea2 100644 --- a/content/functions/seq.md +++ b/content/functions/seq.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [] -ns: signature: ["seq LAST", "seq FIRST LAST", "seq FIRST INCREMENT LAST"] workson: [] hugoversion: diff --git a/content/functions/sha.md b/content/functions/sha.md index a0d3d8d87..0f15be6aa 100644 --- a/content/functions/sha.md +++ b/content/functions/sha.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [sha,checksum] -ns: signature: ["sha1 INPUT", "sha256 INPUT"] workson: [] hugoversion: diff --git a/content/functions/shuffle.md b/content/functions/shuffle.md index a44a4be96..6b032c3b1 100644 --- a/content/functions/shuffle.md +++ b/content/functions/shuffle.md @@ -11,7 +11,6 @@ categories: [functions] menu: docs: parent: "functions" -ns: signature: ["shuffle COLLECTION"] workson: [] hugoversion: @@ -19,7 +18,6 @@ relatedfuncs: [seq] deprecated: false draft: false aliases: [] -needsexamples: true --- `shuffle` returns a random permutation of a given array or slice: diff --git a/content/functions/singularize.md b/content/functions/singularize.md index 58a3b1cc6..8bbd5e86c 100644 --- a/content/functions/singularize.md +++ b/content/functions/singularize.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings,singular] -ns: signature: ["singularize INPUT"] workson: [] hugoversion: diff --git a/content/functions/slice.md b/content/functions/slice.md index a9793a4ae..ff9ff41eb 100644 --- a/content/functions/slice.md +++ b/content/functions/slice.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [slice, array, interface] -ns: signature: ["slice ITEM..."] workson: [] hugoversion: @@ -20,7 +19,6 @@ deprecated: false draft: false aliases: [] toc: false -needsexamples: true --- `slice` allows you to create an array (`[]interface{}`) of all arguments that you pass to this function. diff --git a/content/functions/slicestr.md b/content/functions/slicestr.md index 55b640ef2..f8e1b4a1d 100644 --- a/content/functions/slicestr.md +++ b/content/functions/slicestr.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["slicestr STRING START [END]"] workson: [] hugoversion: diff --git a/content/functions/sort.md b/content/functions/sort.md index 594fa7baa..84acbbf59 100644 --- a/content/functions/sort.md +++ b/content/functions/sort.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [ordering,sorting,lists] -ns: signature: [] workson: [lists,taxonomies,terms,groups] hugoversion: diff --git a/content/functions/split.md b/content/functions/split.md index a90683e90..af2cfd6c8 100644 --- a/content/functions/split.md +++ b/content/functions/split.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["split STRING DELIM"] workson: [] hugoversion: diff --git a/content/functions/string.md b/content/functions/string.md index 5f60731ee..d3296e689 100644 --- a/content/functions/string.md +++ b/content/functions/string.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["string INPUT"] workson: [] hugoversion: diff --git a/content/functions/substr.md b/content/functions/substr.md index 1c0688483..fb4f15b93 100644 --- a/content/functions/substr.md +++ b/content/functions/substr.md @@ -12,7 +12,6 @@ menu: parent: "functions" #tags: [strings] aliases: [] -ns: signature: ["substr STRING START [LENGTH]"] workson: [] hugoversion: diff --git a/content/functions/time.md b/content/functions/time.md index e34052ee4..2d105a3d4 100644 --- a/content/functions/time.md +++ b/content/functions/time.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [dates,time] -ns: signature: ["time INPUT"] workson: [] hugoversion: diff --git a/content/functions/title.md b/content/functions/title.md index 6e77f24d4..4cb42fe6e 100644 --- a/content/functions/title.md +++ b/content/functions/title.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["title INPUT"] workson: [] hugoversion: diff --git a/content/functions/trim.md b/content/functions/trim.md index 453f13ffe..809594e36 100644 --- a/content/functions/trim.md +++ b/content/functions/trim.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["trim INPUT CUTSET"] workson: [] hugoversion: diff --git a/content/functions/truncate.md b/content/functions/truncate.md index b1ff48536..bdff81db4 100644 --- a/content/functions/truncate.md +++ b/content/functions/truncate.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [strings] -ns: signature: ["truncate SIZE INPUT", "truncate SIZE ELLIPSIS INPUT"] workson: [] hugoversion: 19 diff --git a/content/functions/union.md b/content/functions/union.md index 5dae9b851..8938a3728 100644 --- a/content/functions/union.md +++ b/content/functions/union.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [filtering,lists] -ns: signature: ["union SET1 SET2"] workson: [] hugoversion: 0.20 diff --git a/content/functions/uniq.md b/content/functions/uniq.md index 7e029a2e1..3a63976f9 100644 --- a/content/functions/uniq.md +++ b/content/functions/uniq.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [multilingual,i18n,urls] -ns: signature: ["uniq SET"] workson: [] hugoversion: diff --git a/content/functions/unix.md b/content/functions/unix.md index d3e0c6c9f..6fb64673d 100644 --- a/content/functions/unix.md +++ b/content/functions/unix.md @@ -14,7 +14,6 @@ categories: [functions] menu: docs: parent: "functions" -ns: signature: ["Unix"] workson: [times] hugoversion: diff --git a/content/functions/upper.md b/content/functions/upper.md index 2d30c2e39..cef0dc386 100644 --- a/content/functions/upper.md +++ b/content/functions/upper.md @@ -12,7 +12,6 @@ menu: docs: parent: "functions" toc: -ns: signature: ["upper INPUT"] workson: [] hugoversion: diff --git a/content/functions/urlize.md b/content/functions/urlize.md index ed6fa749f..7acce49c0 100644 --- a/content/functions/urlize.md +++ b/content/functions/urlize.md @@ -11,7 +11,6 @@ menu: parent: "functions" #tags: [urls,strings] godocref: -ns: signature: ["urlize INPUT"] hugoversion: deprecated: false diff --git a/content/functions/where.md b/content/functions/where.md index 8fe413e62..41789d7c6 100644 --- a/content/functions/where.md +++ b/content/functions/where.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [filtering] -ns: signature: ["where COLLECTION KEY [OPERATOR] MATCH"] workson: [lists,taxonomies,terms,groups] hugoversion: diff --git a/content/functions/with.md b/content/functions/with.md index f01d34b0c..42abcbbbf 100644 --- a/content/functions/with.md +++ b/content/functions/with.md @@ -11,7 +11,6 @@ menu: docs: parent: "functions" #tags: [conditionals] -ns: signature: ["with INPUT"] workson: [] hugoversion: diff --git a/layouts/shortcodes/needsexamples.html b/layouts/shortcodes/needsexamples.html deleted file mode 100644 index 05644fe9e..000000000 --- a/layouts/shortcodes/needsexamples.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/themes/gohugoioTheme b/themes/gohugoioTheme index cbd3d8203..ad6692b71 160000 --- a/themes/gohugoioTheme +++ b/themes/gohugoioTheme @@ -1 +1 @@ -Subproject commit cbd3d82039a5da47cd68c98001f2f6976b75cee3 +Subproject commit ad6692b717d3f535a62e300e79ed1bc7fab39254