Sha256: aff3f89246f1c300149e391d77f4053be4c42a5bfcc85f37cbb9ec10f8427537
Contents?: true
Size: 1.92 KB
Versions: 22
Compression:
Stored size: 1.92 KB
Contents
{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/modules/connectors/translator # Liquid CONNECTOR for translation providers supported by J1 Template # # Product/Info: # http://jekyll.one # # Copyright (C) 2020 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign translation = site.data.template_settings.translation.enabled %} {% assign translation_provider = site.data.template_settings.translation.provider %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} <!-- [INFO ] [j1.modules.connectors.translator ] [ start processing load region head, layout: {{page.layout}} ] --> {% if translation %} {% case translation_provider %} {% when "google" %} <!-- [INFO ] [j1.modules.connectors.translator ] [ place Google Translator ] --> {% include themes/{{site.template.name}}/modules/connectors/translators/google-translator.html %} {% when "custom" %} <!-- [INFO ] [j1.modules.connectors.translator ] [ place Custom Translation Provider ] --> {% include themes/{{site.template.name}}/modules/connectors/translators/custom-translator.html %} {% endcase %} {% endif %} <!-- [INFO ] [j1.modules.connectors.translator ] [ end processing ] -->
Version data entries
22 entries across 22 versions & 1 rubygems