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>
|
||||
|
||||
{% for pageKey in pagination.pages %}
|
||||
{% if page.url != pagination.hrefs[loop.index - 1] %}
|
||||
<a style="right: 0px; position: absolute;" href="{{ pagination.hrefs[loop.index-1] | url }}">{{ pageKey[0].username }}
|
||||
<span class="{{ resumes[loop.index-1].flag_icon }}"></span><span style="text-transform:uppercase;">{{ resumes[loop.index-1].locale }}</span>
|
||||
{% if pageKey.locale != resume.locale %}
|
||||
<a style="right: 0px; position: absolute;" href="{{ pagination.hrefs[loop.index-1] | url }}">
|
||||
<span class="{{ pageKey.flag_icon }}"></span><span style="text-transform:uppercase;">{{ pageKey.locale }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue