aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/header.html
blob: f905e375f8a839b7777f840d46b13f499820fb15 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {% if site.settings.project.name %}
      <title>{{ page.title }} - {{ site.settings.project.name }} - {{ site.settings.author.name }}</title>
    {% else %}
      <title>{{ page.title }} - {{ site.settings.author.name }}</title>
    {% endif %}

    <link rel="stylesheet" href="{{ '/assets/bootstrap/css/bootstrap.min.css' | relative_url }}">
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    {% include common/mathjax.html %}

    <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">

    {% if page.custom_css %}
      {% for css in page.custom_css %}
        {% assign abs_check = css | downcase | split: '//' %}
        {% if abs_check[0] == 'http:' or abs_check[0] == 'https:' or abs_check[0] == blank %}
          {% assign url = css %}
        {% else %}
          {% assign url = '/assets/css/' | relative_url | append: css %}
        {% endif %}
        <link rel="stylesheet" href="{{ url }}">
      {% endfor %}
    {% endif %}
  </head>
  <body>
    <div class="top-level-footer-wrapper">
      {% if site.settings.navbar.hide or page.navbar.hide %}
      {% else %}
        <div class="footer-wrapper-collapse">
          {% include common/navbar.html %}
        </div>
      {% endif %}
      <div class="footer-wrapper-expand">
        <div class="container">