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:
Artemy Egorov
2024-01-06 20:46:10 +03:00
committed by GitHub
parent 8524289f55
commit fa6c9cc2a0
15 changed files with 209 additions and 7 deletions

View File

@ -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 %>