Search by default (#71)
* feat: searx parser * feat: search form in get page * feat: search in main page * fix: button naming * chore: update version
This commit is contained in:
@ -8,12 +8,27 @@
|
||||
<title><%= parsed.title %></title>
|
||||
<link rel="stylesheet" href="/static/common.css">
|
||||
<link rel="stylesheet" href="/static/get.css">
|
||||
<%
|
||||
if (config.search.enabled) {
|
||||
%><link rel="stylesheet" href="/static/search.css"><%
|
||||
}
|
||||
%>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="menu">
|
||||
<a class="button secondary" href="/">Home</a>
|
||||
<a class="button secondary" href="<%= remoteUrl %>">Original page</a>
|
||||
<%
|
||||
if (config.search.enabled) {
|
||||
%>
|
||||
<form class="right" action="/search" method="get">
|
||||
<input type="text" name="q" id="search" placeholder="Search">
|
||||
<input class="button" type="submit" value="Go"/>
|
||||
</form>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
<p class="title">
|
||||
<%= parsed.title %>
|
||||
|
@ -21,6 +21,23 @@
|
||||
</p>
|
||||
<p><%= publicConfig.description %></p>
|
||||
</header>
|
||||
<%
|
||||
if (config.search.enabled) {
|
||||
|
||||
%>
|
||||
<form action="/search" method="get" class="input-grid">
|
||||
<div class="input">
|
||||
<input type="text" name="q" id="search" placeholder="Search">
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="submit" id="submit" class="button" value="Go">
|
||||
</div>
|
||||
</form>
|
||||
<%
|
||||
|
||||
%><details style="margin-top: 1rem;"><summary>Advanced</summary><%
|
||||
}
|
||||
%>
|
||||
<form action="/get" method="get" class="input-grid">
|
||||
<div class="input">
|
||||
<input type="text" name="url" id="url" placeholder="URL">
|
||||
@ -52,6 +69,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<%
|
||||
if (config.search.enabled) {
|
||||
%></details><%
|
||||
}
|
||||
%>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user