{% capture avatar_url %} {%- if site.avatar contains '://' -%} {{ site.avatar }} {%- elsif site.img_cdn != '' and site.img_cdn -%} {{ site.avatar | prepend: site.img_cdn }} {%- else -%} {{ site.avatar | relative_url }} {%- endif -%} {% endcapture %} avatar
{{- site.title -}}
{{- site.tagline -}}
  • {{ "HOME" }}
  • {% for tab in site.tabs %}
  • {{ tab.title | upcase }}
  • {% endfor %}
{% 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 %} {% unless site.theme_mode %} {% if site.data.contact.size > 0 %} {% endif %} {% include mode-toggle.html %} {% endunless %}