56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Language }}">
|
|
|
|
<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>{{ .Translate "Homepage" }}</title>
|
|
<link rel="stylesheet" type="text/css" href="/static/style.css" />
|
|
|
|
<style>
|
|
:root {
|
|
--bookmark-border-radius: {{ .Settings.BorderRadius }};
|
|
--bookmark-width: {{ .Settings.BookmarkSize }};
|
|
--bookmark-height: {{ .Settings.BookmarkSize }};
|
|
}
|
|
body {
|
|
background-color: {{ .Settings.Background }};
|
|
color: {{ .Settings.Foreground }};
|
|
}
|
|
|
|
{{ if not .Settings.Search }}
|
|
#search {
|
|
display: none;
|
|
}
|
|
{{ end }}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<main id="main-container">
|
|
<a id="button" href="/customize">
|
|
<span class="material-icons">settings</span>
|
|
</a>
|
|
<section id="search">
|
|
<form method="post" action="/search">
|
|
<datalist id="bookmarks">
|
|
{{ range .Bookmarks }}
|
|
<option value="{{ .SmallLink }}">
|
|
{{ end }}
|
|
</datalist>
|
|
<input type="search" id="query" list="bookmarks" placeholder='{{ .Translate "Search" }}' name="query" autofocus><label title="search" for="submit"><span class="material-icons">search</span></label>
|
|
<input id="submit" type="submit" title="search">
|
|
</form>
|
|
</section>
|
|
|
|
<section id="bookmark-container">
|
|
{{ range .Bookmarks }}
|
|
{{ template "bookmark.html" . }}
|
|
{{ end }}
|
|
</section>
|
|
</main>
|
|
</body>
|
|
|
|
</html>
|