Polyglot 1.4.0 · Polyglot

# Polyglot 1.4.0

07 Feb 2021

Polyglot version 1.4.0 is out!

    gem install jekyll-polyglot

## static unrelativized `href`

This release provides a new liquid block tag {% static_href %}href=”…”{% endstatic_href %} which can be used to create href attributes in anchor tags that are not relativized by Polyglot.

Jekyll-Polyglot is fairly greedy and naive in it’s relativization, and so if you want a url that is explicitly static (such as for making a language switcher, hint hint), this liquid tag will help you construct that unmangled href=”…” tag in anchor elements.

## Exclusive site language generation

Polyglot 1.4.0 adds support for `lang-exclusive: [ ]` frontmatter in documents. If added to a document, this frontmatter will limit generation of the document to that specific language.

    ---
    lang-exclusive: ['ru']
    ---

This is a way to control which languages may see a document, even if that document may not have an equivalent in the default language site.

## Renaming a few liquid tags

The {% static_href %} tag is also available as {% Static_Href %} , and the existing {% I18n_Headers %} tag now can be called as {% i18n_headers %}

## Want to see your language featured?

I am looking for any volunteers that would like to see the Jekyll-Polyglot homepage represented in your language of origin! If you find this software helpful and want to see your language represented, just reach out on the github issues.

## Related Posts

- ### Polyglot 1.5.0 17 Jul 2021

- ### Polyglot 1.4.1 18 Apr 2021

- ### Polyglot 1.3.3 19 Jul 2020