Merge commit 'efc0b1bb6c6564f54d596467dbc6a18cb206954e'

This commit is contained in:
Bjørn Erik Pedersen
2019-11-11 11:46:22 +01:00
22 changed files with 59 additions and 39 deletions

View File

@@ -107,7 +107,7 @@ You can find a list of all template variables to access the profile information
### Link Social Network Accounts
As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corrersponding identifiers are supported: `github`, `facebook`, `twitter`, `pinterest`, `instagram`, `youtube` and `linkedin`.
As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corresponding identifiers are supported: `github`, `facebook`, `twitter`, `pinterest`, `instagram`, `youtube` and `linkedin`.
This is can be done with the `.Social.URL` function. Its only parameter is the name of the social network as they are defined in the profile (e.g. `facebook`, `twitter`). Custom variables like `website` remain as they are.

View File

@@ -55,7 +55,7 @@ Returns a collection of pages related to a given one restricted to a list of ind
#### .RelatedTo KEYVALS [KEYVALS2 ...]
Returns a collection of pages related together by a set of indices and their match.
In order to build those set and pass them as argument, one must use the `keyVals` function where the first argument would be the `indice` and the consective ones its potential `matches`.
In order to build those set and pass them as argument, one must use the `keyVals` function where the first argument would be the `indice` and the consecutive ones its potential `matches`.
```
{{ $related := .Site.RegularPages.RelatedTo ( keyVals "tags" "hugo" "rocks") ( keyVals "date" .Date ) }}

View File

@@ -5,7 +5,7 @@ description: Shortcodes are simple snippets inside your content files calling bu
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-03-31
lastmod: 2019-11-07
menu:
docs:
parent: "content-management"
@@ -103,7 +103,7 @@ title
: Image title.
caption
: Image caption.
: Image caption. Markdown within the value of `caption` will be rendered.
class
: `class` attribute of the HTML `figure` tag.
@@ -115,7 +115,7 @@ width
: `width` attribute of the image.
attr
: Image attribution text.
: Image attribution text. Markdown within the value of `attr` will be rendered.
attrlink
: If the attribution text needs to be hyperlinked, URL of the destination.