Skip to content

Commit

Permalink
Merge pull request #2049 from nikolassv/issue_2048
Browse files Browse the repository at this point in the history
Link current page in english on localized sites
  • Loading branch information
gsmet authored Jul 23, 2024
2 parents b42d7dd + 3018abe commit 2133c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _data/languages.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language:
- headline: 'The <a href="https://quarkus.io">English version of quarkus.io</a> is the official project site. Translated sites are community supported on a best-effort basis.'
- headline: 'The <a href="%URL%">English version of quarkus.io</a> is the official project site. Translated sites are community supported on a best-effort basis.'
3 changes: 2 additions & 1 deletion _includes/language-headerbar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{%if site.cname!="quarkus.io" %}
{%assign url = page.url | prepend: "https://quarkus.io" %}
{% for item in site.data.languages.language %}
<div class="grid-wrapper communitysite">
<div class="grid__item width-12-12">{{ item.headline }}</div>
<div class="grid__item width-12-12">{{ item.headline | replace: "%URL%", url }}</div>
</div>
{% endfor %}
{% endif %}

0 comments on commit 2133c2a

Please sign in to comment.