Sha256: c0804184812c5eeb56355750ed933721af4b7e9cd669895a9596ae2537a74dbb
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
{%- include languages/languages.html -%} {%- if page.nointernationalization -%} <div></div> {%- elsif site.internationalizationall -%} <div class="container-fluid int-section"> <div class="d-flex justify-content-center mt-1"> <div>Available in</div> </div> <div class="lang-container"> {%- assign currentPermalink = page.permalink -%} {%- assign pageLang = page.lang -%} {%- for i in matchurls -%} {%- for checklang in site.pages -%} {%- assign linkToCheck ="/" |append: i|append:currentPermalink -%} {%- if pageLang !="en" -%} {%- assign stringToReplace = "/"|append: pageLang-%} {%-assign linkToCheck = linkToCheck | replace: stringToReplace, ""%} {%-endif-%} {%- if checklang.permalink == linkToCheck -%} {%- assign languagetext = [i]-%} <a class="m-2 languageLinks" href="{{ checklang.permalink }}"> {%- if languagetext[0]==page.lang -%} English {%- else -%} {{ languagetext[1] }} {%- endif -%} </a> {%- endif -%} {%- endfor -%} {%- endfor -%} </div> </div> {%- endif -%} <style> .lang-container { display: grid; grid-template-columns: auto auto auto auto; padding: 10px; } .languageLinks { text-align: center; text-decoration: none; display: inline-block; color: #6b6b6b; font-size: 14px; font-weight: 500; line-height: 18px; } .int-section { padding: 10px; background-color: white; border-top: 1px solid rgb(148, 148, 148); } </style>
Version data entries
3 entries across 3 versions & 1 rubygems