From 5b0e2ea06fb2fd7abed2c1f1feeaa15ca3da9d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 20 Jun 2017 11:10:51 +0200 Subject: [PATCH] Regenerate data/docs.json And add a note about `Delimiter` in mime types. Closes https://github.com/gohugoio/hugo/issues/3615 --- content/extras/output-formats.md | 1 + data/docs.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/content/extras/output-formats.md b/content/extras/output-formats.md index 9de6c4eb0..933e7f6e0 100644 --- a/content/extras/output-formats.md +++ b/content/extras/output-formats.md @@ -28,6 +28,7 @@ This is the full set of built-in media types in Hugo: * It is possible to add custom media types or change the defaults (if you, say, want to change the suffix to `asp` for `text/html`). * The `Suffix` is the value that will be used for URLs and filenames for that media type in Hugo. * The `Type` is the identifier that must be used when defining new `Output Formats` (see below). +* The `Delimiter` defaults to ".", but can be changed or even blanked out to support, as an example, Netlify's `_redirect` files. * The full set of media types will be registered in Hugo's built-in development server to make sure they are recognized by the browser. To add or modify a media type, define it in a `mediaTypes` section in your site config (either for all sites or for a given language). diff --git a/data/docs.json b/data/docs.json index 698130c83..83d614afa 100644 --- a/data/docs.json +++ b/data/docs.json @@ -611,6 +611,21 @@ ] ] }, + "Uniq": { + "Description": "Uniq takes in a slice or array and returns a slice with subsequent\nduplicate elements removed.", + "Args": [ + "l" + ], + "Aliases": [ + "uniq" + ], + "Examples": [ + [ + "{{ slice 1 2 3 2 | uniq }}", + "[1 2 3]" + ] + ] + }, "Where": { "Description": "Where returns a filtered subset of a given data type.", "Args": [