Skip to content
Snippets Groups Projects
Commit 3e788358 authored by alexisben's avatar alexisben
Browse files

handle mono language site url

parent b902f96b
No related branches found
No related tags found
No related merge requests found
{{ $siteUrl := site.BaseURL }}
{{ $lang := site.LanguageCode }}
{{ if $lang }}
{{ if and $lang (gt (len site.Languages) 1) }}
{{ $siteUrl = printf "%s%s/" $siteUrl $lang }}
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment