mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
4c220c4ac2
Fixes #3709
900 B
900 B
title | description | godocref | date | publishdate | lastmod | categories | menu | signature | workson | hugoversion | relatedfuncs | deprecated | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
absLangURL | Adds the absolute URL with correct language prefix according to site configuration for multilingual. | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
|
|
|
false |
Both absLangURL
and relLangURL
are similar to their absURL
and relURL
relatives but will add the correct language prefix when the site is configured with more than one language.
So for a site baseURL
set to http://yoursite.com/hugo/
and the current language is en
:
{{ "blog/" | absLangURL }} → "http://yoursite.com/hugo/en/blog/"
{{ "blog/" | relLangURL }} → "/hugo/en/blog/"