base.html 4.56 KB
Newer Older
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>
        {% if page.title %}
        {{ page.title | append: " | " | append: site.title | escape }}
        {% else %}
        {{ site.title | escape }}
        {% endif %}
    </title>

    <meta name="description" content="
            {% if page.excerpt %}
                {{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}
            {% endif %}">

    <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    <link rel="stylesheet" href="{{ "/assets/css/hci-style.css" | prepend: site.baseurl }}">

    {% if site.favicon %}
    <link rel="icon" href="{{ site.favicon }}">
    {% endif %}

    <!-- Define Facebook parameters -->
    {% if page.title %}
    <meta property="og:title" content="{{ page.title | replace: '"', "'" }}">
    {% endif %}
    {% if page.image %}
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
36
    <meta property="og:image" content="{{ site.url }}/assets/images/{{ site.widths | first }}/{{ page.image }}">
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
37
38
39
40
41
42
43
44
45
46
47
    {% endif %}
    {% if page.teaser %}
    <meta property="og:description" content="{{ page.teaser | replace: '"', "'" }}">
    {% endif %}
</head>

<body>

    <header role="banner" class="page-header">
        <div class="page-header__logo">
            <a class="page-header__logo-link" title="Zur Startseite" href="http://www.uni-wuerzburg.de/startseite/">
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
48
                <img src="{{ site.baseurl }}/assets/images/uni-wuerzburg-logo.svg" class="page-header__logo-full">
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
49
            </a>
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
50
            <img src="{{ site.baseurl }}/assets/images/uni-wuerzburg-header-background.png" class="page-header__logo-background">
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
51
52
53
54
        </div>
    </header>

    <div class="page-hero">
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
        <script type="text/javascript">
        window.menu = [
            {% for m in site.menu %}
            {
                title: "{{ m.title }}",
                href: "{{ m.href }}",
                {% if m.items %}
                items: [
                {% for sub_m in m.items %}
                {
                    title: "{{ sub_m.title }}",
                    href: "{{ sub_m.href }}",
                    {% if sub_m.items %}
                    items: [
                    {% for sub_sub_m in sub_m.items %}
                    {
                        title: "{{ sub_sub_m.title }}",
                        href: "{{ sub_sub_m.href }}"
                    },
                    {% endfor %}
                    ]
                    {% endif %}
                },
                {% endfor %}
                ]
                {% endif %}
            },
            {% endfor %}
        ];
        </script>
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
85
86
87
88
89
90
91
92
93
94
        <div id="react-placeholder-navigation"></div>

        {% if page.slides %}
        {% assign slides = page.slides %}
        {% else %}
        {% assign slides = site.slides %}
        {% endif %}
        {% if slides.size > 1 %}
        <div class="slick-element">
            {% for slide in slides %}
95
96
                {% if forloop.index == 1 %}
                    {% assign class = "" %}
Martin Fischbach's avatar
Martin Fischbach committed
97
                    {% include image src=slide sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
98
                {% else %}
Martin Fischbach's avatar
Martin Fischbach committed
99
                    {% include image src=slide class="hide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
100
                {% endif %}
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
101
102
103
104
            {% endfor %}
        </div>
        {% elsif slides.size == 1 %}
        <div class="single-slide">
105
            {% assign first_image = slides.first %}
Martin Fischbach's avatar
Martin Fischbach committed
106
            {% include image src="first_image" dimension="panorama"%}
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
        </div>
        {% endif %}
    </div>

    <div class="header-title">
        <a href="{{ site.baseurl }}/">
            {{ site.title }}
        </a>
    </div>

    <div class="content">
        <div class="content-breadcrumb" id="react-placeholder-breadcrumb" url="{{ site.baseurl }}{{ page.url }}"></div>
        {{ content }}
    </div>

    {% include footer %}

    <div class="u-centerContent u-margin-bottom-10 u-color-disabled">
        <a href="https://www.hci.uni-wuerzburg.de/legal/" class="u-color-disabled">Legal Information</a>
    </div>

128
    <script type="text/javascript" src="{{ site.baseurl }}/assets/js/bundle.js" charset="utf-8"></script>
Jan-Philipp Stauffert's avatar
Jan-Philipp Stauffert committed
129
130
131

</body>

Martin Fischbach's avatar
Martin Fischbach committed
132
</html>