fix: language switcher
This commit is contained in:
parent
8d2b4e9d15
commit
bd693eb71a
|
@ -30,9 +30,9 @@ permalink: "resume/{{ resume.locale }}/index.html"
|
||||||
<span class="blink" style="display:inline;">_</span>
|
<span class="blink" style="display:inline;">_</span>
|
||||||
|
|
||||||
{% for pageKey in pagination.pages %}
|
{% for pageKey in pagination.pages %}
|
||||||
{% if page.url != pagination.hrefs[loop.index - 1] %}
|
{% if pageKey.locale != resume.locale %}
|
||||||
<a style="right: 0px; position: absolute;" href="{{ pagination.hrefs[loop.index-1] | url }}">{{ pageKey[0].username }}
|
<a style="right: 0px; position: absolute;" href="{{ pagination.hrefs[loop.index-1] | url }}">
|
||||||
<span class="{{ resumes[loop.index-1].flag_icon }}"></span><span style="text-transform:uppercase;">{{ resumes[loop.index-1].locale }}</span>
|
<span class="{{ pageKey.flag_icon }}"></span><span style="text-transform:uppercase;">{{ pageKey.locale }}</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Reference in a new issue