Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordigitalcraftsman <digitalcraftsman@protonmail.com>2016-09-28 18:17:57 +0300
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2016-09-28 18:19:33 +0300
commit0043b4865821346c447166608e176b93839375c9 (patch)
treecba7ebaf6c882f4ae665c1e8d92759a04eb3787d /docs
parent78e5263ca957bf625aa6b3ab7ca1d26e772db70e (diff)
docs: Add notes about multilingual menus
Diffstat (limited to 'docs')
-rw-r--r--docs/content/extras/menus.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/content/extras/menus.md b/docs/content/extras/menus.md
index f62bc4cf6..3184b6f39 100644
--- a/docs/content/extras/menus.md
+++ b/docs/content/extras/menus.md
@@ -30,6 +30,8 @@ A menu is a named array of menu entries accessible on the site under
`.Site.Menus` by name. For example, if I have a menu called `main`, I would
access it via `.Site.Menus.main`.
+If you make use of the [multilingual feature]({{< relref "content/multilingual.md#menus">}}) you can define menus language independent.
+
A menu entry has the following properties:
* **URL** string
@@ -177,7 +179,7 @@ The following is an example:
</ul>
{{else}}
<li>
- <a class="" href="{{.URL}}">
+ <a href="{{.URL}}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
@@ -192,6 +194,7 @@ The following is an example:
</aside>
<!--sidebar end-->
+> **Note**: use the `absLangURL` or `relLangURL` if your theme makes use of the [multilingual feature]({{< relref "content/multilingual.md" >}}). In contrast to `absURL` and `relURL` it adds the correct language prefix to the url. [Read more]({{< relref "templates/functions.md#urls" >}}).
## Section Menu for "the Lazy Blogger"