aboutsummaryrefslogtreecommitdiff
path: root/_layouts/default.html
blob: 10b04b30344c24da523b16572199a64b62a40228 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

    {% comment %}
    <!--
      There are three situations:

      1. We have a page title and it needs translation (it starts with "titles.blabla").
      2. We have a page title and it has to be as it is.
      3. We don't have a page title (e.g. the main page)
    -->
    {% endcomment %}
    {% if page.title %}
      {% if page.title contains "titles." %}
        <title>{{ site.title }} - {% t page.title %}</title>
      {% else %}
        <title>{{ site.title }} - {{ page.title }}</title>
      {% endif %}
    {% else %}
      <title>{{ site.title }}</title>
    {% endif %}

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">

    {% comment %}<!-- We have the same CSS file for all languages -->{% endcomment %}
    <link href="{{ "/stylesheets/main.css" | prepend: site.baseurl_root }}" rel="stylesheet" type="text/css" />

    {% comment %}<!-- Empty favicon -->{% endcomment %}
    <link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />

    {% comment %}<!-- Feeds -->{% endcomment %}
    <link href="/feed.xml" type="application/rss+xml" rel="alternate" title="Entrades al blog en català" />
    <link href="/feed.en.xml" type="application/rss+xml" rel="alternate" title="Blog posts in english" />
</head>
<body>
  {% include header.html %}

  <main class="page-content" aria-label="Content">
    <div class="wrapper">
      {{ content }}
    </div>
  </main >

  {% include footer.html %}
</body>
</html>