Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Mar 10, 2023
1 parent be46528 commit f2f064c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions docs/.eleventy.js
Expand Up @@ -218,8 +218,6 @@ module.exports = function(eleventyConfig) {
// Shortcodes
//------------------------------------------------------------------------------

eleventyConfig.addShortcode("isLatest", () => process.env.BRANCH === "latest");

eleventyConfig.addNunjucksShortcode("link", function(url) {

// eslint-disable-next-line no-invalid-this -- Eleventy API
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_includes/components/language-switcher.html
Expand Up @@ -19,7 +19,7 @@
data-url="https://{{ other_site.hostname }}/docs/latest{{ page.url | prettyURL }}"
{% if site.language.code==other_site.language.code %}selected{% endif %}
>
{{ other_site.language.flag }} {{ other_site.language.name }}{% if site.language.code!=other_site.language.code and not isLatest %} ({{ other_site.footer.language_switcher.latest }}){% endif %}
{{ other_site.language.flag }} {{ other_site.language.name }}{% if site.language.code!=other_site.language.code and GIT_BRANCH!="latest" %} ({{ other_site.footer.language_switcher.latest }}){% endif %}
</option>
{% endfor %}
</select>
Expand Down

0 comments on commit f2f064c

Please sign in to comment.