Merge commit 'eb16165694f868d73e57b6aed5c26ba5e98229de'

This commit is contained in:
Bjørn Erik Pedersen
2018-12-12 09:06:42 +01:00
199 changed files with 10860 additions and 22630 deletions

View File

@@ -37,7 +37,6 @@ JSON
### Example
{{< code-toggle >}}
+++
title = "spf13-vim 3.0 release and new website"
description = "spf13-vim is a cross platform distribution of vim plugins and resources for Vim."
tags = [ ".vimrc", "plugins", "spf13-vim", "vim" ]
@@ -47,8 +46,7 @@ categories = [
"VIM"
]
slug = "spf13-vim-3-0-release-and-new-website"
+++
{{</ code-toggle >}}
{{< /code-toggle >}}
## Front Matter Variables

View File

@@ -349,12 +349,6 @@ And then in the template:
```
{{ i18n "readingTime" .ReadingTime }}
```
To track down missing translation strings, run Hugo with the `--i18n-warnings` flag:
```
hugo --i18n-warnings | grep i18n
i18n|MISSING_TRANSLATION|en|wordCount
```
## Customize Dates
@@ -438,6 +432,13 @@ Hugo will generate your website with these missing translation placeholders. It
For merging of content from other languages (i.e. missing content translations), see [lang.Merge](/functions/lang.merge/).
To track down missing translation strings, run Hugo with the `--i18n-warnings` flag:
```
hugo --i18n-warnings | grep i18n
i18n|MISSING_TRANSLATION|en|wordCount
```
## Multilingual Themes support
To support Multilingual mode in your themes, some considerations must be taken for the URLs in the templates. If there is more than one language, URLs must meet the following criteria:

View File

@@ -249,7 +249,7 @@ Gets a value from the current `Page's` params set in front matter, with a fall b
{{</* param testparam */>}}
```
Since `testparam` is a param defined in front matter of this page wi the value `Hugo Rocks!`, the above will print:
Since `testparam` is a param defined in front matter of this page with the value `Hugo Rocks!`, the above will print:
{{< param testparam >}}