aboutsummaryrefslogtreecommitdiff
path: root/_includes/header.html
blob: ca0eecaa02dc225da2c2f175fbf5819a968951af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% if site.tags != "" %}
  {% include tags.html %}
{% endif %}

<header class="site-header" role="banner">
  <div class="wrapper">
    <div class="left-header header-component">
      <a title="Home" class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
    </div>
    <nav class="site-nav">
      {% if site.lang == "ca" %}
        {% if page.layout == "post" and page.english_available == false %}
          <span class="no-lang" title="{% t blog.no_english_post %}">{% t global.english %}</span>
        {% else %}
          <a href="/en{{ page.url }}" >{% t global.english %}</a>
        {% endif %}
      {% elsif site.lang == "en" %}
        {% if page.layout == "post" and page.catalan_available == false %}
          <span class="no-lang" title="{% t blog.no_catalan_post %}">{% t global.catalan %}</span>
        {% else %}
          <a href="{{ page.url }}" >{% t global.catalan %}</a>
        {% endif %}
      {% endif %}

      <a title="{% t titles.writings %}" href="{% tl writings %}">{% t titles.writings %}</a>
      <a title="{% t titles.blog %}" href="{% tl blog %}">{% t titles.blog %}</a>
      <a title="{% t titles.about %}" href="{% tl about %}">{% t titles.about %}</a>
    </nav>
  </div>
</header>