-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
159 lines (138 loc) · 5.94 KB
/
index.html
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
50
51
52
53
54
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
layout: null
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>Start Page</title>
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords | escape }}{% else %}{{ site.keywords | escape }}{% endif %}">
<meta name="author" content="Ubuntu MATE Team">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ site.title }}">
<meta property="og:description" content="{{ site.description | strip }}">
<meta property="og:url" content="{{ page.url | replace:'index.html','' | absolute_url }}">
<meta property="og:type" content="website">
<meta property="og:image" content="/favicon/preview.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@ubuntu_mate">
<meta name="twitter:creator" content="@ubuntu_mate">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="manifest" href="/favicon/manifest.json">
<link rel="icon" type="image/x-icon" href="/favicon/favicon.ico" />
<meta name="application-name" content="Ubuntu MATE"/>
<meta name="msapplication-TileColor" content="#87A556"/>
<meta name="msapplication-TileImage" content="/favicon/144x144.png">
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
{% assign favicons = "16,32,64,96,144,196,256" | split: "," %}
{% for icon in favicons %}
<link rel="icon" type="image/png" sizes="196x196" href="/favicon/{{ icon }}x{{ icon }}.png">
<link rel="apple-touch-icon" sizes="{{ icon }}x{{ icon }}" href="/favicon/{{ icon }}x{{ icon }}.png">
{% endfor %}
<link rel="shortcut icon" href="/favicon/favicon.ico">
<style>
{% include start.css %}
</style>
<script>
// For browsers that do not support dark mode via CSS.
if (localStorage.getItem("dark") == true) {
document.body.classList.add("dark");
}
</script>
</head>
<body>
<div id="logo">
{% include images/logo.svg %}
</div>
<div class="search-box">
{% for engine in site.data.engines.engines %}
{% assign config = site.data.engines.config[engine] %}
<form method="{{ config.method }}" class="search-form {{ engine }}" action="{{ config.action }}" name="{{ config.name }}" style="display:none">
<input id="{{ engine }}-search-input" class="search-input" type="search" name="{{ config.input_name }}" value="" x-webkit-speech placeholder="Search the web" autofocus />
{% for field in config.fields %}
<input type="{{ field.type }}" name="{{ field.name }}" value="{{ field.value }}" />
{% endfor %}
<button class="search-button" type="submit" title="Search!">{% include images/search.svg %}</button>
</form>
{% endfor %}
<div id="current-engine">
<div id="str-powered-by">Powered by</div>
{% for engine in site.data.engines.engines %}
<div class="search-logo {{ engine }}" style="display:none">
{% include brands/{{ engine }}.svg %}
</div>
{% endfor %}
</div>
</div>
<!-- Preferences -->
<input id="pref-menu-toggle" type="checkbox"/>
<label id="pref-menu-icon" for="pref-menu-toggle" title="Preferences">
{% include images/wrench.svg %}
</label>
<div id="pref-menu">
<noscript>
<p class="no-js-alert">
{% include images/warning.svg %}
<span>JavaScript must be enabled to change preferences.</span>
</p>
<style>
.requires-js {
opacity: 0.5;
cursor: not-allowed;
}
</style>
</noscript>
<h4 id="str-prefer-engine">Preferred Search Engine</h4>
{% for engine in site.data.engines.engines %}
<a id="option-{{ engine }}" class="engine-choice requires-js" onclick="set_default('{{ engine }}')">
{% include brands/{{ engine }}.svg %}
</a>
{% endfor %}
<h4 id="str-appearance">Appearance</h4>
<input id="dark-mode" type="checkbox" class="requires-js"/>
<label id="str-dark-mode" for="dark-mode" class="requires-js">Force dark mode</label>
</div>
<div class="links">
<a href="https://ubuntu-mate.org">
{% include images/desktop.svg %}
<span id="str-discover">Discover</span>
</a>
<a href="https://ubuntu-mate.community">
{% include images/comments.svg %}
<span id="str-community">Community</span>
</a>
<a href="https://ubuntu-mate.org/shop/">
{% include images/shopping-bag.svg %}
<span id="str-shop">Emporium</span>
</a>
<a href="https://ubuntu-mate.org/funding/">
{% include images/heart.svg %}
<span id="str-funding">Funding</span>
</a>
</div>
<script>
var LOCALES = {
{% for locale in site.data.locales %}
"{{ locale }}": {% include i18n/{{ locale }}.json %}
{% if forloop.last == false %},{% endif %}
{% endfor %}
}
var PLACEHOLDERS = {
{% for engine in site.data.engines.engines %}
"{{ engine }}": "{{ site.data.engines.config[engine].placeholder_string }}"
{% if forloop.last == false %},{% endif %}
{% endfor %}
}
{% include start.js %}
</script>
<noscript>
<style>
.google {
display: block !important;
}
</style>
</noscript>
</body>
</html>