Squashed 'docs/' changes from 44fe0285..32356e4e

32356e4e Fix typo in header of shortcode-templates.md
c8f1a2d2 Correct code example for index template function
bfa6a55d Escape code fencing
ff8b2f99 Fix typos in deployment with wercker tutorial
557c36e8 theme: Merge commit '7fbb4bed25001182bfeb91f79db0f0c1936582ee'
7fbb4bed Squashed 'themes/gohugoioTheme/' changes from 7dd8a302..ca53082d
ce31cee0 Add "See Also" config
158cee1b Make the tags into keywords
61600be6 Add a note to the related section
49edb5a2 Relase 0.27.1
c9bbc001 releaser: Add release notes to /docs for release of 0.27.1
213c6c3b Add bugs poster
8b4590cd Add KeyCDN integration tutorial
2b277859 Add tutorial videos to several docs pages
950fef1f Update roadmap to link to the correct milestones page
496f5bf6 Rename relnotes
d6f9378d Bump Netlify versions to 0.27
087fde7f Update 0.27 release notes
603f94ae docs: Document Related Content
3790f6a3 releaser: Bump versions for release of 0.27
0948868c releaser: Add release notes to /docs for release of 0.27

git-subtree-dir: docs
git-subtree-split: 32356e4eabe357ae914f4d1d59e8ae31ce936723
This commit is contained in:
Bjørn Erik Pedersen 2017-09-21 19:03:00 +02:00
parent 1b4319be62
commit ba45da9d03
201 changed files with 604 additions and 204 deletions

View file

@ -3,7 +3,7 @@ title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
description: ""
categories: []
#tags: []
keywords: []
slug: ""
aliases: []
toc: false

View file

@ -45,6 +45,20 @@ baseName = "_headers"
isPlainText = true
notAlternative = true
[related]
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
name = "keywords"
weight = 100
[[related.indices]]
name = "date"
weight = 10
pattern = "2006"
[social]
twitter = "GoHugoIO"
@ -52,7 +66,7 @@ twitter = "GoHugoIO"
[params]
description = "The worlds fastest framework for building websites"
## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
release = "0.26"
release = "0.27.1"
## Setting this to true will add a "noindex" to *EVERY* page on the site
removefromexternalsearch = false
## Gh repo for site footer (include trailing slash)

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: []
#tags: []
keywords: []
menu:
docs:
parent: "about"

View file

@ -5,7 +5,7 @@ description: Improved performance, security and ease of use are just a few of th
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [ssg,static,performance,security]
keywords: [ssg,static,performance,security]
menu:
docs:
parent: "about"

View file

@ -6,7 +6,7 @@ date: 2016-02-01
publishdate: 2016-02-01
lastmod: 2016-03-02
categories: ["about hugo"]
#tags: ["License","apache"]
keywords: ["License","apache"]
menu:
docs:
parent: "about"

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [about hugo]
#tags: [about,contribute,roadmap]
keywords: [about,contribute,roadmap]
menu:
docs:
parent: "about"
@ -42,7 +42,7 @@ Feel free to [contribute to Hugo's development][devcontribute], [improve Hugo's
[doccontribute]: /contribute/documentation/
[hosting and deployment]: /hosting-and-deployment/
[migrate]: /tools/migrations/
[milestones]: https://github.com/gohugoio/hugo/milestone/14
[milestones]: https://github.com/gohugoio/hugo/milestones/
[newissue]: https://github.com/gohugoio/hugo/issues/
[related forum thread]: https://discourse.gohugo.io/t/web-based-editor/155
[themes]: /themes/

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [commands]
#tags: [cli,command line]
keywords: [cli,command line]
menu:
docs:
parent: "commands"

View file

@ -9,7 +9,7 @@ menu:
docs:
parent: "content-management"
weight: 1
#tags: [source, organization]
keywords: [source, organization]
categories: [content management]
weight: 01 #rem
draft: false

View file

@ -5,7 +5,7 @@ description: Archetypes allow you to create new instances of content types and s
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [archetypes,generators,metadata,front matter]
keywords: [archetypes,generators,metadata,front matter]
categories: ["content management"]
menu:
docs:
@ -29,7 +29,7 @@ See above
**Archetypes** are content files in the [archetypes directory][] of your project that contain preconfigured [front matter][] for your website's [content types][]. Archetypes facilitate consistent metadata across your website content and allow content authors to quickly generate instances of a content type via the `hugo new` command.
{{< youtube S3Tj3UcTFz8 >}}
{{< youtube bcme8AzVh6o >}}
The `hugo new` generator for archetypes assumes your working directory is the content folder at the root of your project. Hugo is able to infer the appropriate archetype by assuming the content type from the content section passed to the CLI command:
@ -94,7 +94,7 @@ Default archetypes are convenient if your content's front matter stays consisten
### Create the Default Archetype
When you create a new Hugo project using `hugo new site`, you'll notice that Hugo has already scaffolded a file at `archetypes/default.md`.
When you create a new Hugo project using `hugo new site`, you'll notice that Hugo has already scaffolded a file at `archetypes/default.md`.
The following examples are from a site that's using `tags` and `categories` as [taxonomies][]. If we assume that all content files will require these two key-values, we can create a `default.md` archetype that *extends* Hugo's base archetype. In this example, we are including "golang" and "hugo" as tags and "web development" as a category.

View file

@ -5,7 +5,7 @@ description:
date: 2016-08-22
publishdate: 2017-03-12
lastmod: 2017-03-12
#tags: [authors]
keywords: [authors]
categories: ["content management"]
menu:
docs:

View file

@ -5,7 +5,7 @@ description: Hugo ships with an internal Disqus template, but this isn't the onl
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-03-09
#tags: [sections,content,organization]
keywords: [sections,content,organization]
categories: [project organization, fundamentals]
menu:
docs:

View file

@ -5,7 +5,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-03-31
categories: [content management]
#tags: ["cross references","references", "anchors", "urls"]
keywords: ["cross references","references", "anchors", "urls"]
menu:
docs:
parent: "content-management"

View file

@ -6,7 +6,7 @@ date: 2017-01-10
publishdate: 2017-01-10
lastmod: 2017-04-06
categories: [content management]
#tags: [markdown,asciidoc,mmark,content format]
keywords: [markdown,asciidoc,mmark,content format]
menu:
docs:
parent: "content-management"

View file

@ -6,7 +6,7 @@ date: 2017-01-09
publishdate: 2017-01-09
lastmod: 2017-02-24
categories: [content management]
#tags: ["front matter", "yaml", "toml", "json", "metadata", "archetypes"]
keywords: ["front matter", "yaml", "toml", "json", "metadata", "archetypes"]
menu:
docs:
parent: "content-management"
@ -19,6 +19,8 @@ toc: true
**Front matter** allows you to keep metadata attached to an instance of a [content type][]---i.e., embedded inside a content file---and is one of the many features that gives Hugo its strength.
{{< youtube Yh2xKRJGff4 >}}
## Front Matter Formats
Hugo supports three formats for front matter, each with their own identifying tokens.

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-03-31
categories: [content management]
#tags: [menus]
keywords: [menus]
draft: false
menu:
docs:

View file

@ -6,7 +6,7 @@ date: 2017-01-10
publishdate: 2017-01-10
lastmod: 2017-01-10
categories: [content management]
#tags: [multilingual,i18n, internationalization]
keywords: [multilingual,i18n, internationalization]
menu:
docs:
parent: "content-management"

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [content management,fundamentals]
#tags: [sections,content,organization]
keywords: [sections,content,organization]
menu:
docs:
parent: "content-management"
@ -24,6 +24,8 @@ This section is not updated with the new nested sections support in Hugo 0.24, s
See above
{{% /todo %}}
{{< youtube 0GZxidrlaRM >}}
## Organization of Content Source
In Hugo, your content should be organized in a manner that reflects the rendered website.

View file

@ -0,0 +1,138 @@
---
title: Related Content
description: List related content in "See Also" sections.
date: 2017-09-05
categories: [content management]
keywords: [content]
menu:
docs:
parent: "content-management"
weight: 40
weight: 30
draft: false
aliases: [/content/related/,/related/]
toc: true
---
{{% note %}}
We currently do not index **Page content**. We thought we would release something that will make most people happy before we start solving [Sherlock's last case](https://github.com/joearms/sherlock).
{{% /note %}}
## List Related Content
To list up to 5 related pages is as simple as including something similar to this partial in your single page template:
{{< code file="layouts/partials/related.html" >}}
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>See Also</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
{{< /code >}}
The full set of methods available on the page lists can bee seen in this Go interface:
```go
// A PageGenealogist finds related pages in a page collection. This interface is implemented
// by Pages and PageGroup, which makes it available as `{{ .RegularPages.Related . }}` etc.
type PageGenealogist interface {
// Template example:
// {{ $related := .RegularPages.Related . }}
Related(doc related.Document) (Pages, error)
// Template example:
// {{ $related := .RegularPages.RelatedIndices . "tags" "date" }}
RelatedIndices(doc related.Document, indices ...interface{}) (Pages, error)
// Template example:
// {{ $related := .RegularPages.RelatedTo ( keyVals "tags" "hugo" "rocks") ( keyVals "date" .Date ) }}
RelatedTo(args ...types.KeyValues) (Pages, error)
}
```
## Configure Related Content
Hugo provides a sensible default configuration of Related Content, but you can fine-tune this in your configuration, on the global or language level if needed.
{{% note %}}
If you add a `related` config section, you need to add a complete configuration. It is not possible to just set, say, `includeNewer` and use the rest from the Hugo defaults.
{{% /note %}}
Below is a sample `config.toml` section:
```
[related]
# Only include matches with rank >= threshold. This is a normalized rank between 0 and 100.
threshold = 80
# To get stable "See also" sections we, by default, exclude newer related pages.
includeNewer = false
# Will lower case keywords in both queries and in the indexes.
toLower = false
[[related.indices]]
name = "keywords"
weight = 150
[[related.indices]]
name = "author"
toLower = true
weight = 30
[[related.indices]]
name = "tags"
weight = 100
[[related.indices]]
name = "date"
weight = 10
pattern = "2006"
```
### Top Level Config Options
threshold
: A value between 0-100. Lower value will give more, but maybe not so relevant, matches.
includeNewer
: Set to true to include **pages newer than the current page** in the related content listing. This will mean that the output for older posts may change as new related content gets added.
toLower
: Set to true to lower case keywords in both the indexes and the queries. This may give more accurate results at a slight performance penalty. Note that this can also be set per index.
### Config Options per Index
name
: The index name. This value maps directly to a page param. Hugo supports string values (`author` in the example) and lists (`tags`, `keywords` etc.) and time and date objects.
weight
: An integer weight that indicates _how important_ this parameter is relative to the other parameters. It can be 0, which has the effect of turning this index off, or even negative. Test with different values to see what fits your content best.
pattern
: This is currently only relevant for dates. When listing related content, we may want to list content that is also close in time. Setting "2006" (default value for date indexes) as the pattern for a date index will add weight to pages published in the same year. For busier blogs, "200601" (year and month) may be a better default.
toLower
: See above.
## Performance Considerations
**Fast is Hugo's middle name** and we would not have released this feature had it not been blistering fast.
This feature has been in the back log and requested by many for a long time. The development got this recent kick start from this Twitter thread:
{{< tweet 898398437527363585 >}}
Scott S. Lowe removed the "Related Content" section built using the `intersect` template function on tags, and the build time dropped from 30 seconds to less than 2 seconds on his 1700 content page sized blog.
He should now be able to add an improved version of that "Related Content" section without giving up the fast live-reloads. But it's worth noting that:
* If you don't use any of the `Related` methods, you will not use the Relate Content feature, and performance will be the same as before.
* Calling `.RegularPages.Related` etc. will create one inverted index, also sometimes named posting list, that will be reused for any lookups in that same page collection. Doing that in addition to, as an example, calling `.Pages.Related` will work as expected, but will create one additional inverted index. This should still be very fast, but worth having in mind, especially for bigger sites.

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [content management]
#tags: [lists,sections,content types,organization]
keywords: [lists,sections,content types,organization]
menu:
docs:
parent: "content-management"

View file

@ -12,7 +12,7 @@ menu:
weight: 35
weight: 35 #rem
categories: [content management]
#tags: [markdown,content,shortcodes]
keywords: [markdown,content,shortcodes]
draft: false
aliases: [/extras/shortcodes/]
toc: true
@ -30,6 +30,8 @@ In addition to cleaner Markdown, shortcodes can be updated any time to reflect n
## Use Shortcodes
{{< youtube 2xkNJL4gJ9E >}}
In your content files, a shortcode can be called by calling `{{%/* shortcodename parameters */%}}`. Shortcode parameters are space delimited, and parameters with internal spaces can be quoted.
The first word in the shortcode declaration is always the name of the shortcode. Parameters follow the name. Depending upon how the shortcode is defined, the parameters may be named, positional, or both, although you can't mix parameter types in a single call. The format for named parameters models that of HTML with the format `name="value"`.

View file

@ -6,7 +6,7 @@ date: 2017-01-10
publishdate: 2017-01-10
lastmod: 2017-01-10
categories: [content management]
#tags: [summaries,abstracts,read more]
keywords: [summaries,abstracts,read more]
menu:
docs:
parent: "content-management"

View file

@ -5,7 +5,7 @@ description: Hugo includes support for user-defined taxonomies to help you demo
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [taxonomies,metadata,front matter,terms]
keywords: [taxonomies,metadata,front matter,terms]
categories: [content management]
menu:
docs:
@ -32,7 +32,7 @@ Term
Value
: a piece of content assigned to a term
{{< youtube "-np9GX6cL38" >}}
{{< youtube pCPCQgqC8RA >}}
## Example Taxonomy: Movie Website

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [content management]
#tags: [table of contents, toc]
keywords: [table of contents, toc]
menu:
docs:
parent: "content-management"

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [content management]
#tags: [lists,sections,content types,types,organization]
keywords: [lists,sections,content types,types,organization]
menu:
docs:
parent: "content-management"

View file

@ -5,7 +5,7 @@ description: Hugo supports permalinks, aliases, link canonicalization, and multi
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-03-09
#tags: [aliases,redirects,permalinks,urls]
keywords: [aliases,redirects,permalinks,urls]
categories: [content management]
menu:
docs:

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [contribute]
#tags: []
keywords: []
menu:
docs:
parent: "contribute"

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [contribute]
#tags: [dev,open source]
keywords: [dev,open source]
authors: [digitalcraftsman]
menu:
docs:

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [contribute]
#tags: [docs,documentation,community, contribute]
keywords: [docs,documentation,community, contribute]
menu:
docs:
parent: "contribute"

View file

@ -6,7 +6,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-27
categories: [contribute]
#tags: [contribute,themes,design]
keywords: [contribute,themes,design]
authors: [digitalcraftsman]
menu:
docs:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [sections,lists,indexes]
keywords: [sections,lists,indexes]
signature: [".GetPage TYPE PATH"]
workson: []
hugoversion:

View file

@ -7,7 +7,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-08-21
categories: [functions]
#tags: [numbers]
keywords: [numbers]
menu:
docs:
parent: "functions"

View file

@ -6,7 +6,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: []
keywords: []
menu:
docs:
parent: "functions"

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [multilingual,i18n,urls]
keywords: [multilingual,i18n,urls]
signature: ["absLangURL INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [urls]
keywords: [urls]
signature: ["absURL INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [dates,time]
keywords: [dates,time]
signature: [".AddDate YEARS MONTHS DAYS"]
workson: [times]
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [iteration]
keywords: [iteration]
signature: ["after INDEX COLLECTION"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [advanced]
keywords: [advanced]
signature: ["apply COLLETION FUNCTION [PARAM...]"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
relatedfuncs: []
signature: ["base64Decode INPUT", "base64Encode INPUT"]
workson: []

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [trim]
keywords: [trim]
signature: ["chomp INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [counting, word count]
keywords: [counting, word count]
signature: ["countrunes INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [counting, word count]
keywords: [counting, word count]
signature: ["countwords INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [dates,time,strings]
keywords: [dates,time,strings]
signature: ["dateFormat LAYOUT INPUT"]
workson: []
hugoversion:

View file

@ -6,7 +6,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [defaults]
keywords: [defaults]
categories: [functions]
menu:
docs:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [iteration]
keywords: [iteration]
toc: false
signature: ["delimit COLLECTION DELIMIT LAST"]
workson: [lists,taxonomies,terms]
@ -36,7 +36,7 @@ The examples of `delimit` that follow all use the same front matter:
{{< code file="delimit-example-front-matter.toml" nocopy="true" >}}
+++
title: I love Delimit
#tags: [ "tag1", "tag2", "tag3" ]
keywords: [ "tag1", "tag2", "tag3" ]
+++
{{< /code >}}

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [dictionary]
keywords: [dictionary]
signature: ["dict KEY VALUE [KEY VALUE]..."]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["echoParam DICTIONARY KEY"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings,emojis]
keywords: [strings,emojis]
signature: ["emojify INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["eq ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [regex]
keywords: [regex]
signature: ["findRE PATTERN INPUT [LIMIT]"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [iteration]
keywords: [iteration]
signature: ["first LIMIT COLLECTION"]
workson: [lists,taxonomies,terms,groups]
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [dates,time]
keywords: [dates,time]
signature: [".Format FORMAT"]
workson: [times]
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["ge ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [shortcodes]
keywords: [shortcodes]
signature: ["Get INDEX", "Get KEY"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["getenv VARIABLE"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["gt ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["hasPrefix STRING PREFIX"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [menus]
keywords: [menus]
toc:
signature: ["HasChildren"]
workson: [menus]

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [menus]
keywords: [menus]
signature: ["HasMenuCurrent"]
workson: [menus]
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [highlighting,pygments,code blocks,syntax]
keywords: [highlighting,pygments,code blocks,syntax]
signature: ["highlight INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings, html]
keywords: [strings, html]
signature: ["htmlEscape INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["htmlUnescape INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings,casing]
keywords: [strings,casing]
signature: ["humanize INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [internationalization,i18n,multilingual]
keywords: [internationalization,i18n,multilingual]
signature: ["i18n KEY", "T KEY"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [images]
keywords: [images]
signature: ["imageConfig PATH"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["in SET ITEM"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["index COLLECTION INDEX", "index COLLECTION KEY"]
workson: []
hugoversion:
@ -71,7 +71,7 @@ This is where the `index` function is needed. `index` takes 2 parameters in this
The variable for `.Params.location` is a string and can therefore replace `oslo` in the example above:
```
{{ index .Site.Data.authors .Params.author }}
{{ index .Site.Data.locations .Params.location }}
=> map[website:https://www.oslo.kommune.no pop_city:658390 pop_metro:1717900]
```

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings,integers]
keywords: [strings,integers]
signature: ["int INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["intersect SET1 SET2"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [menus]
keywords: [menus]
signature: ["IsMenuCurrent"]
workson: [menus]
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["isset COLLECTION INDEX", "isset COLLECTION KEY"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings,json]
keywords: [strings,json]
signature: ["jsonify INPUT"]
workson: []
hugoversion:

View file

@ -6,7 +6,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: []
keywords: []
categories: [functions]
menu:
docs:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["le ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -7,7 +7,7 @@ date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-18
categories: [functions]
#tags: []
keywords: []
signature: ["len INPUT"]
workson: [lists,taxonomies,terms]
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings,casing]
keywords: [strings,casing]
signature: ["lower INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["lt ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -6,7 +6,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [markdown,content]
keywords: [markdown,content]
categories: [functions]
menu:
docs:

View file

@ -5,7 +5,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [math, operators]
keywords: [math, operators]
categories: [functions]
menu:
docs:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["md5 INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
keywords: [operators,logic]
signature: ["ne ARG1 ARG2"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [dates,time]
keywords: [dates,time]
signature: ["now"]
workson: []
hugoversion:

View file

@ -5,7 +5,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
#tags: ["front matter"]
keywords: ["front matter"]
categories: [functions]
menu:
docs:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["partialCached LAYOUT INPUT [VARIANT...]"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["plainify INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["pluralize INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["printf FORMAT INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [urls]
keywords: [urls]
godocref:
signature: ["querify KEY VALUE [KEY VALUE]..."]
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions,fundamentals]
menu:
docs:
parent: "functions"
#tags: [iteration]
keywords: [iteration]
signature: ["range COLLECTION"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [files]
keywords: [files]
signature: ["readDir PATH"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [files]
keywords: [files]
signature: ["readFile PATH"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [cross references, anchors]
keywords: [cross references, anchors]
signature: ["ref PAGE CONTENT"]
workson: []
hugoversion:

View file

@ -5,7 +5,7 @@ godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
#tags: [multilingual,i18n,urls]
keywords: [multilingual,i18n,urls]
categories: [functions]
menu:
docs:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [cross references, anchors]
keywords: [cross references, anchors]
signature: ["relref PAGE CONTENT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [urls]
keywords: [urls]
signature: ["relURL INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [views]
keywords: [views]
signature: ["render LAYOUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: []
keywords: []
signature: ["replace INPUT OLD NEW"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [regex]
keywords: [regex]
signature: ["replaceRE PATTERN REPLACEMENT INPUT"]
workson: []
hugoversion:

View file

@ -9,7 +9,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [style,css,strings]
keywords: [style,css,strings]
signature: ["safeCSS INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["safeHTML INPUT"]
workson: []
hugoversion:

View file

@ -10,7 +10,7 @@ categories: [functions]
menu:
docs:
parent: "functions"
#tags: [strings]
keywords: [strings]
signature: ["safeHTMLAttr INPUT"]
workson: []
hugoversion:

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