Skip to content

Commit

Permalink
Regenerate data/docs.json
Browse files Browse the repository at this point in the history
And add a note about `Delimiter` in mime types.

Closes gohugoio/hugo#3615
  • Loading branch information
bep committed Jun 20, 2017
1 parent f91c0c4 commit 5b0e2ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/extras/output-formats.md
Expand Up @@ -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).
Expand Down
15 changes: 15 additions & 0 deletions data/docs.json
Expand Up @@ -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": [
Expand Down

0 comments on commit 5b0e2ea

Please sign in to comment.