"Fossies" - the Fresh Open Source Software Archive

Member "hugo-0.62.2/docs/content/en/functions/abslangurl.md" (5 Jan 2020, 897 Bytes) of package /linux/www/hugo-0.62.2.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

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/"