mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
Remove old aliases afor abs and rel langurl functions
This commit is contained in:
1 parent
4c048ac4b0
commit
63b78b3831
2 files changed
+4
-4
No files matched your search
@@ -13,11 +13,11 @@ workson: []
|
|||||||
hugoversion:
|
hugoversion:
|
||||||
relatedfuncs: [relLangURL]
|
relatedfuncs: [relLangURL]
|
||||||
deprecated: false
|
deprecated: false
|
||||||
aliases: [/functions/absurl/,/functions/rellangurl/]
|
aliases: []
|
||||||
needsexamples: true
|
needsexamples: true
|
||||||
---
|
---
|
||||||
|
|
||||||
These functions are similar to their [`absURL` and `relURL`](/functions/absurl-and-relurl) relatives but will add the correct language prefix when the site is configured with more than one language.
|
Both `absLangURL` and [`relLangURL`](/functions/rellangurl/) are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/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`:
|
So for a site `baseURL` set to `http://yoursite.com/hugo/` and the current language is `en`:
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ workson: []
|
|||||||
hugoversion:
|
hugoversion:
|
||||||
relatedfuncs: []
|
relatedfuncs: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
aliases: [/functions/absurl/,/functions/rellangurl/]
|
aliases: []
|
||||||
needsexamples: true
|
needsexamples: true
|
||||||
---
|
---
|
||||||
|
|
||||||
`absLangURL` and `relLangURL` functions 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. (See [Configuring Multilingual][multiliconfig])
|
`absLangURL` and `relLangURL` functions are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl/) relatives but will add the correct language prefix when the site is configured with more than one language. (See [Configuring Multilingual][multiliconfig])
|
||||||
|
|
||||||
So for a site `baseURL` set to `http://yoursite.com/hugo/` and the current language is `en`:
|
So for a site `baseURL` set to `http://yoursite.com/hugo/` and the current language is `en`:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user