Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add relative_url in language switcher #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ verbose: false
# 7. Site settings
analytics_adobe: ""
assets: "https://wet-boew.github.io/themes-dist"
baseurl: ""
baseurl: "" # If the site is in a subdirectory like on github.io then set this to "/dirname"
description:
en: "Jekyll variant for GCWeb theme" # English site description and default description
fr: "Adaption Jekyll du theme GCWeb" # French site description and default description
Expand Down
2 changes: 1 addition & 1 deletion _includes/language/languagetoggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2 class="wb-inv">{{ i18nText-language }}</h2>
<ul class="list-inline mrgn-bttm-0">
<li>
<a lang="{{ i18nText-altLang }}" hreflang="{{ i18nText-altLang }}" href="{{ page.altLangPage }}">
<a lang="{{ i18nText-altLang }}" hreflang="{{ i18nText-altLang }}" href="{{ page.altLangPage | relative_url }}">
<span class="hidden-xs" translate="no">{{ i18nText-altLanguage }}</span>
<abbr title="{{ i18nText-altLanguage }}" translate="no" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">{{ i18nText-altLang }}</abbr>
</a>
Expand Down