mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 20:22:38 +00:00
8353177226
* Replace http://example.{com,org}/ with https://example.{com,org}/ To be consistent with gohugoio/hugo, @bep suggests changing all instances of http://(www.)?example.{com,org} with https://(www.)?example.{com,org} See issue gohugoio/hugo#3728 with pull request gohugoio/hugo#3739
894 B
894 B
title, description, godocref, date, publishdate, lastmod, categories, menu, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
| 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 https://example.com/hugo/ and the current language is en:
{{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/"
{{ "blog/" | relLangURL }} → "/hugo/en/blog/"