{% if site.avatar != empty and site.avatar %} {% capture avatar_url %} {% if site.avatar contains '://' %} {{ site.avatar }} {% elsif site.img_cdn != empty and site.img_cdn %} {{ site.avatar | prepend: site.img_cdn }} {% else %} {{ site.avatar | relative_url }} {% endif %} {% endcapture %} avatar {% endif %}
{{ site.title }}
{{ site.tagline }}
  • {{ site.data.locales[site.lang].tabs.home | upcase }}
  • {% for tab in site.tabs %}
  • {% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %} {{ site.data.locales[site.lang].tabs.[tab_name] | default: tab.title | upcase }}
  • {% endfor %}
{% unless site.theme_mode %} {% if site.data.contact.size > 0 %} {% endif %} {% endunless %} {% for entry in site.data.contact %} {% capture url %} {%- if entry.type == 'github' -%} https://github.com/{{ site.github.username }} {%- elsif entry.type == 'twitter' -%} https://twitter.com/{{ site.twitter.username }} {%- elsif entry.type == 'email' -%} {% assign email = site.social.email | split: '@' %} javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@') {%- elsif entry.type == 'rss' -%} {{ "/feed.xml" | relative_url }} {%- else -%} {{ entry.url }} {%- endif -%} {% endcapture %} {% if url %} {% endif %} {% endfor %}