mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
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:
parent
1b4319be62
commit
ba45da9d03
201 changed files with 604 additions and 204 deletions
|
@ -3,7 +3,7 @@ title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
description: ""
|
description: ""
|
||||||
categories: []
|
categories: []
|
||||||
#tags: []
|
keywords: []
|
||||||
slug: ""
|
slug: ""
|
||||||
aliases: []
|
aliases: []
|
||||||
toc: false
|
toc: false
|
||||||
|
|
16
config.toml
16
config.toml
|
@ -45,6 +45,20 @@ baseName = "_headers"
|
||||||
isPlainText = true
|
isPlainText = true
|
||||||
notAlternative = 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]
|
[social]
|
||||||
twitter = "GoHugoIO"
|
twitter = "GoHugoIO"
|
||||||
|
|
||||||
|
@ -52,7 +66,7 @@ twitter = "GoHugoIO"
|
||||||
[params]
|
[params]
|
||||||
description = "The world’s fastest framework for building websites"
|
description = "The world’s fastest framework for building websites"
|
||||||
## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
|
## 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
|
## Setting this to true will add a "noindex" to *EVERY* page on the site
|
||||||
removefromexternalsearch = false
|
removefromexternalsearch = false
|
||||||
## Gh repo for site footer (include trailing slash)
|
## Gh repo for site footer (include trailing slash)
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: []
|
categories: []
|
||||||
#tags: []
|
keywords: []
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "about"
|
parent: "about"
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Improved performance, security and ease of use are just a few of th
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [ssg,static,performance,security]
|
keywords: [ssg,static,performance,security]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "about"
|
parent: "about"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2016-02-01
|
||||||
publishdate: 2016-02-01
|
publishdate: 2016-02-01
|
||||||
lastmod: 2016-03-02
|
lastmod: 2016-03-02
|
||||||
categories: ["about hugo"]
|
categories: ["about hugo"]
|
||||||
#tags: ["License","apache"]
|
keywords: ["License","apache"]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "about"
|
parent: "about"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [about hugo]
|
categories: [about hugo]
|
||||||
#tags: [about,contribute,roadmap]
|
keywords: [about,contribute,roadmap]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "about"
|
parent: "about"
|
||||||
|
@ -42,7 +42,7 @@ Feel free to [contribute to Hugo's development][devcontribute], [improve Hugo's
|
||||||
[doccontribute]: /contribute/documentation/
|
[doccontribute]: /contribute/documentation/
|
||||||
[hosting and deployment]: /hosting-and-deployment/
|
[hosting and deployment]: /hosting-and-deployment/
|
||||||
[migrate]: /tools/migrations/
|
[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/
|
[newissue]: https://github.com/gohugoio/hugo/issues/
|
||||||
[related forum thread]: https://discourse.gohugo.io/t/web-based-editor/155
|
[related forum thread]: https://discourse.gohugo.io/t/web-based-editor/155
|
||||||
[themes]: /themes/
|
[themes]: /themes/
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [commands]
|
categories: [commands]
|
||||||
#tags: [cli,command line]
|
keywords: [cli,command line]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "commands"
|
parent: "commands"
|
||||||
|
|
|
@ -9,7 +9,7 @@ menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
weight: 1
|
weight: 1
|
||||||
#tags: [source, organization]
|
keywords: [source, organization]
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
weight: 01 #rem
|
weight: 01 #rem
|
||||||
draft: false
|
draft: false
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Archetypes allow you to create new instances of content types and s
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [archetypes,generators,metadata,front matter]
|
keywords: [archetypes,generators,metadata,front matter]
|
||||||
categories: ["content management"]
|
categories: ["content management"]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
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.
|
**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:
|
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:
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ description:
|
||||||
date: 2016-08-22
|
date: 2016-08-22
|
||||||
publishdate: 2017-03-12
|
publishdate: 2017-03-12
|
||||||
lastmod: 2017-03-12
|
lastmod: 2017-03-12
|
||||||
#tags: [authors]
|
keywords: [authors]
|
||||||
categories: ["content management"]
|
categories: ["content management"]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Hugo ships with an internal Disqus template, but this isn't the onl
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-03-09
|
lastmod: 2017-03-09
|
||||||
#tags: [sections,content,organization]
|
keywords: [sections,content,organization]
|
||||||
categories: [project organization, fundamentals]
|
categories: [project organization, fundamentals]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -5,7 +5,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-03-31
|
lastmod: 2017-03-31
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: ["cross references","references", "anchors", "urls"]
|
keywords: ["cross references","references", "anchors", "urls"]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-01-10
|
||||||
publishdate: 2017-01-10
|
publishdate: 2017-01-10
|
||||||
lastmod: 2017-04-06
|
lastmod: 2017-04-06
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [markdown,asciidoc,mmark,content format]
|
keywords: [markdown,asciidoc,mmark,content format]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-01-09
|
||||||
publishdate: 2017-01-09
|
publishdate: 2017-01-09
|
||||||
lastmod: 2017-02-24
|
lastmod: 2017-02-24
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: ["front matter", "yaml", "toml", "json", "metadata", "archetypes"]
|
keywords: ["front matter", "yaml", "toml", "json", "metadata", "archetypes"]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
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.
|
**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
|
## Front Matter Formats
|
||||||
|
|
||||||
Hugo supports three formats for front matter, each with their own identifying tokens.
|
Hugo supports three formats for front matter, each with their own identifying tokens.
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-03-31
|
lastmod: 2017-03-31
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [menus]
|
keywords: [menus]
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-01-10
|
||||||
publishdate: 2017-01-10
|
publishdate: 2017-01-10
|
||||||
lastmod: 2017-01-10
|
lastmod: 2017-01-10
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [multilingual,i18n, internationalization]
|
keywords: [multilingual,i18n, internationalization]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [content management,fundamentals]
|
categories: [content management,fundamentals]
|
||||||
#tags: [sections,content,organization]
|
keywords: [sections,content,organization]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
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
|
See above
|
||||||
{{% /todo %}}
|
{{% /todo %}}
|
||||||
|
|
||||||
|
{{< youtube 0GZxidrlaRM >}}
|
||||||
|
|
||||||
## Organization of Content Source
|
## Organization of Content Source
|
||||||
|
|
||||||
In Hugo, your content should be organized in a manner that reflects the rendered website.
|
In Hugo, your content should be organized in a manner that reflects the rendered website.
|
||||||
|
|
138
content/content-management/related.md
Normal file
138
content/content-management/related.md
Normal 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [lists,sections,content types,organization]
|
keywords: [lists,sections,content types,organization]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -12,7 +12,7 @@ menu:
|
||||||
weight: 35
|
weight: 35
|
||||||
weight: 35 #rem
|
weight: 35 #rem
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [markdown,content,shortcodes]
|
keywords: [markdown,content,shortcodes]
|
||||||
draft: false
|
draft: false
|
||||||
aliases: [/extras/shortcodes/]
|
aliases: [/extras/shortcodes/]
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -30,6 +30,8 @@ In addition to cleaner Markdown, shortcodes can be updated any time to reflect n
|
||||||
|
|
||||||
## Use Shortcodes
|
## 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.
|
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"`.
|
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"`.
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-01-10
|
||||||
publishdate: 2017-01-10
|
publishdate: 2017-01-10
|
||||||
lastmod: 2017-01-10
|
lastmod: 2017-01-10
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [summaries,abstracts,read more]
|
keywords: [summaries,abstracts,read more]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Hugo includes support for user-defined taxonomies to help you demo
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [taxonomies,metadata,front matter,terms]
|
keywords: [taxonomies,metadata,front matter,terms]
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
@ -32,7 +32,7 @@ Term
|
||||||
Value
|
Value
|
||||||
: a piece of content assigned to a term
|
: a piece of content assigned to a term
|
||||||
|
|
||||||
{{< youtube "-np9GX6cL38" >}}
|
{{< youtube pCPCQgqC8RA >}}
|
||||||
|
|
||||||
## Example Taxonomy: Movie Website
|
## Example Taxonomy: Movie Website
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [table of contents, toc]
|
keywords: [table of contents, toc]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
#tags: [lists,sections,content types,types,organization]
|
keywords: [lists,sections,content types,types,organization]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Hugo supports permalinks, aliases, link canonicalization, and multi
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-03-09
|
lastmod: 2017-03-09
|
||||||
#tags: [aliases,redirects,permalinks,urls]
|
keywords: [aliases,redirects,permalinks,urls]
|
||||||
categories: [content management]
|
categories: [content management]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [contribute]
|
categories: [contribute]
|
||||||
#tags: []
|
keywords: []
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "contribute"
|
parent: "contribute"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [contribute]
|
categories: [contribute]
|
||||||
#tags: [dev,open source]
|
keywords: [dev,open source]
|
||||||
authors: [digitalcraftsman]
|
authors: [digitalcraftsman]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
categories: [contribute]
|
categories: [contribute]
|
||||||
#tags: [docs,documentation,community, contribute]
|
keywords: [docs,documentation,community, contribute]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "contribute"
|
parent: "contribute"
|
||||||
|
|
|
@ -6,7 +6,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-27
|
lastmod: 2017-02-27
|
||||||
categories: [contribute]
|
categories: [contribute]
|
||||||
#tags: [contribute,themes,design]
|
keywords: [contribute,themes,design]
|
||||||
authors: [digitalcraftsman]
|
authors: [digitalcraftsman]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [sections,lists,indexes]
|
keywords: [sections,lists,indexes]
|
||||||
signature: [".GetPage TYPE PATH"]
|
signature: [".GetPage TYPE PATH"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -7,7 +7,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-08-21
|
lastmod: 2017-08-21
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
#tags: [numbers]
|
keywords: [numbers]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
|
|
|
@ -6,7 +6,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: []
|
keywords: []
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [multilingual,i18n,urls]
|
keywords: [multilingual,i18n,urls]
|
||||||
signature: ["absLangURL INPUT"]
|
signature: ["absLangURL INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [urls]
|
keywords: [urls]
|
||||||
signature: ["absURL INPUT"]
|
signature: ["absURL INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [dates,time]
|
keywords: [dates,time]
|
||||||
signature: [".AddDate YEARS MONTHS DAYS"]
|
signature: [".AddDate YEARS MONTHS DAYS"]
|
||||||
workson: [times]
|
workson: [times]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [iteration]
|
keywords: [iteration]
|
||||||
signature: ["after INDEX COLLECTION"]
|
signature: ["after INDEX COLLECTION"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [advanced]
|
keywords: [advanced]
|
||||||
signature: ["apply COLLETION FUNCTION [PARAM...]"]
|
signature: ["apply COLLETION FUNCTION [PARAM...]"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
relatedfuncs: []
|
relatedfuncs: []
|
||||||
signature: ["base64Decode INPUT", "base64Encode INPUT"]
|
signature: ["base64Decode INPUT", "base64Encode INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [trim]
|
keywords: [trim]
|
||||||
signature: ["chomp INPUT"]
|
signature: ["chomp INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [counting, word count]
|
keywords: [counting, word count]
|
||||||
signature: ["countrunes INPUT"]
|
signature: ["countrunes INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [counting, word count]
|
keywords: [counting, word count]
|
||||||
signature: ["countwords INPUT"]
|
signature: ["countwords INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [dates,time,strings]
|
keywords: [dates,time,strings]
|
||||||
signature: ["dateFormat LAYOUT INPUT"]
|
signature: ["dateFormat LAYOUT INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -6,7 +6,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [defaults]
|
keywords: [defaults]
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [iteration]
|
keywords: [iteration]
|
||||||
toc: false
|
toc: false
|
||||||
signature: ["delimit COLLECTION DELIMIT LAST"]
|
signature: ["delimit COLLECTION DELIMIT LAST"]
|
||||||
workson: [lists,taxonomies,terms]
|
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" >}}
|
{{< code file="delimit-example-front-matter.toml" nocopy="true" >}}
|
||||||
+++
|
+++
|
||||||
title: I love Delimit
|
title: I love Delimit
|
||||||
#tags: [ "tag1", "tag2", "tag3" ]
|
keywords: [ "tag1", "tag2", "tag3" ]
|
||||||
+++
|
+++
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [dictionary]
|
keywords: [dictionary]
|
||||||
signature: ["dict KEY VALUE [KEY VALUE]..."]
|
signature: ["dict KEY VALUE [KEY VALUE]..."]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["echoParam DICTIONARY KEY"]
|
signature: ["echoParam DICTIONARY KEY"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings,emojis]
|
keywords: [strings,emojis]
|
||||||
signature: ["emojify INPUT"]
|
signature: ["emojify INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["eq ARG1 ARG2"]
|
signature: ["eq ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [regex]
|
keywords: [regex]
|
||||||
signature: ["findRE PATTERN INPUT [LIMIT]"]
|
signature: ["findRE PATTERN INPUT [LIMIT]"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [iteration]
|
keywords: [iteration]
|
||||||
signature: ["first LIMIT COLLECTION"]
|
signature: ["first LIMIT COLLECTION"]
|
||||||
workson: [lists,taxonomies,terms,groups]
|
workson: [lists,taxonomies,terms,groups]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [dates,time]
|
keywords: [dates,time]
|
||||||
signature: [".Format FORMAT"]
|
signature: [".Format FORMAT"]
|
||||||
workson: [times]
|
workson: [times]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["ge ARG1 ARG2"]
|
signature: ["ge ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [shortcodes]
|
keywords: [shortcodes]
|
||||||
signature: ["Get INDEX", "Get KEY"]
|
signature: ["Get INDEX", "Get KEY"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["getenv VARIABLE"]
|
signature: ["getenv VARIABLE"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["gt ARG1 ARG2"]
|
signature: ["gt ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["hasPrefix STRING PREFIX"]
|
signature: ["hasPrefix STRING PREFIX"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [menus]
|
keywords: [menus]
|
||||||
toc:
|
toc:
|
||||||
signature: ["HasChildren"]
|
signature: ["HasChildren"]
|
||||||
workson: [menus]
|
workson: [menus]
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [menus]
|
keywords: [menus]
|
||||||
signature: ["HasMenuCurrent"]
|
signature: ["HasMenuCurrent"]
|
||||||
workson: [menus]
|
workson: [menus]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [highlighting,pygments,code blocks,syntax]
|
keywords: [highlighting,pygments,code blocks,syntax]
|
||||||
signature: ["highlight INPUT"]
|
signature: ["highlight INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings, html]
|
keywords: [strings, html]
|
||||||
signature: ["htmlEscape INPUT"]
|
signature: ["htmlEscape INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["htmlUnescape INPUT"]
|
signature: ["htmlUnescape INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings,casing]
|
keywords: [strings,casing]
|
||||||
signature: ["humanize INPUT"]
|
signature: ["humanize INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [internationalization,i18n,multilingual]
|
keywords: [internationalization,i18n,multilingual]
|
||||||
signature: ["i18n KEY", "T KEY"]
|
signature: ["i18n KEY", "T KEY"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [images]
|
keywords: [images]
|
||||||
signature: ["imageConfig PATH"]
|
signature: ["imageConfig PATH"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["in SET ITEM"]
|
signature: ["in SET ITEM"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["index COLLECTION INDEX", "index COLLECTION KEY"]
|
signature: ["index COLLECTION INDEX", "index COLLECTION KEY"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
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:
|
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]
|
=> map[website:https://www.oslo.kommune.no pop_city:658390 pop_metro:1717900]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings,integers]
|
keywords: [strings,integers]
|
||||||
signature: ["int INPUT"]
|
signature: ["int INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["intersect SET1 SET2"]
|
signature: ["intersect SET1 SET2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [menus]
|
keywords: [menus]
|
||||||
signature: ["IsMenuCurrent"]
|
signature: ["IsMenuCurrent"]
|
||||||
workson: [menus]
|
workson: [menus]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["isset COLLECTION INDEX", "isset COLLECTION KEY"]
|
signature: ["isset COLLECTION INDEX", "isset COLLECTION KEY"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings,json]
|
keywords: [strings,json]
|
||||||
signature: ["jsonify INPUT"]
|
signature: ["jsonify INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -6,7 +6,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: []
|
keywords: []
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["le ARG1 ARG2"]
|
signature: ["le ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -7,7 +7,7 @@ date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-04-18
|
lastmod: 2017-04-18
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["len INPUT"]
|
signature: ["len INPUT"]
|
||||||
workson: [lists,taxonomies,terms]
|
workson: [lists,taxonomies,terms]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings,casing]
|
keywords: [strings,casing]
|
||||||
signature: ["lower INPUT"]
|
signature: ["lower INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["lt ARG1 ARG2"]
|
signature: ["lt ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -6,7 +6,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [markdown,content]
|
keywords: [markdown,content]
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -5,7 +5,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [math, operators]
|
keywords: [math, operators]
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["md5 INPUT"]
|
signature: ["md5 INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [operators,logic]
|
keywords: [operators,logic]
|
||||||
signature: ["ne ARG1 ARG2"]
|
signature: ["ne ARG1 ARG2"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [dates,time]
|
keywords: [dates,time]
|
||||||
signature: ["now"]
|
signature: ["now"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -5,7 +5,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-04-30
|
lastmod: 2017-04-30
|
||||||
#tags: ["front matter"]
|
keywords: ["front matter"]
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["partialCached LAYOUT INPUT [VARIANT...]"]
|
signature: ["partialCached LAYOUT INPUT [VARIANT...]"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["plainify INPUT"]
|
signature: ["plainify INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["pluralize INPUT"]
|
signature: ["pluralize INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["printf FORMAT INPUT"]
|
signature: ["printf FORMAT INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [urls]
|
keywords: [urls]
|
||||||
godocref:
|
godocref:
|
||||||
signature: ["querify KEY VALUE [KEY VALUE]..."]
|
signature: ["querify KEY VALUE [KEY VALUE]..."]
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions,fundamentals]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [iteration]
|
keywords: [iteration]
|
||||||
signature: ["range COLLECTION"]
|
signature: ["range COLLECTION"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [files]
|
keywords: [files]
|
||||||
signature: ["readDir PATH"]
|
signature: ["readDir PATH"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [files]
|
keywords: [files]
|
||||||
signature: ["readFile PATH"]
|
signature: ["readFile PATH"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [cross references, anchors]
|
keywords: [cross references, anchors]
|
||||||
signature: ["ref PAGE CONTENT"]
|
signature: ["ref PAGE CONTENT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -5,7 +5,7 @@ godocref:
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
lastmod: 2017-02-01
|
lastmod: 2017-02-01
|
||||||
#tags: [multilingual,i18n,urls]
|
keywords: [multilingual,i18n,urls]
|
||||||
categories: [functions]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [cross references, anchors]
|
keywords: [cross references, anchors]
|
||||||
signature: ["relref PAGE CONTENT"]
|
signature: ["relref PAGE CONTENT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [urls]
|
keywords: [urls]
|
||||||
signature: ["relURL INPUT"]
|
signature: ["relURL INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [views]
|
keywords: [views]
|
||||||
signature: ["render LAYOUT"]
|
signature: ["render LAYOUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: []
|
keywords: []
|
||||||
signature: ["replace INPUT OLD NEW"]
|
signature: ["replace INPUT OLD NEW"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [regex]
|
keywords: [regex]
|
||||||
signature: ["replaceRE PATTERN REPLACEMENT INPUT"]
|
signature: ["replaceRE PATTERN REPLACEMENT INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -9,7 +9,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [style,css,strings]
|
keywords: [style,css,strings]
|
||||||
signature: ["safeCSS INPUT"]
|
signature: ["safeCSS INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["safeHTML INPUT"]
|
signature: ["safeHTML INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
|
@ -10,7 +10,7 @@ categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
#tags: [strings]
|
keywords: [strings]
|
||||||
signature: ["safeHTMLAttr INPUT"]
|
signature: ["safeHTMLAttr INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue