mirror of
https://github.com/benbusby/whoogle-search
synced 2024-11-18 09:25:33 +00:00
c0f4ba99cf
* Add custom CSS field to config This allows users to set/customize an instance's theme and appearance to their liking. The config CSS field is prepopulated with all default CSS variable values to allow quick editing. Note that this can be somewhat of a "footgun" if someone updates the CSS to hide all fields/search/etc. Should probably add some sort of bandaid "admin" feature for public instances to employ until the whole cookie/session issue is investigated further. * Symlink all app static files to test dir * Refactor app/misc/*.json -> app/static/settings/*.json The country/language json files are used for user config settings, so the "misc" name didn't really make sense. Also moved these to the static folder to make testing easier. * Fix light theme variables in dark theme css * Minor style tweaking
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="shortcut icon" href="static/img/favicon.ico" type="image/x-icon">
|
|
<link rel="icon" href="static/img/favicon.ico" type="image/x-icon">
|
|
<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Whoogle Search">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="referrer" content="no-referrer">
|
|
<link rel="stylesheet" href="static/css/variables.css">
|
|
<link rel="stylesheet" href="static/css/header.css">
|
|
<link rel="stylesheet" href="static/css/{{ 'dark' if config.dark else 'light' }}-theme.css"/>
|
|
<style>{{ config.style }}</style>
|
|
<title>{{ query }} - Whoogle Search</title>
|
|
</head>
|
|
<body>
|
|
{{ search_header|safe }}
|
|
{{ response|safe }}
|
|
</body>
|
|
<footer>
|
|
<p style="color: {{ '#fff' if config.dark else '#000' }};">
|
|
Whoogle Search v{{ version_number }} ||
|
|
<a style="color: #685e79" href="https://github.com/benbusby/whoogle-search">View on GitHub</a>
|
|
</p>
|
|
</footer>
|
|
<script src="static/js/autocomplete.js"></script>
|
|
<script src="static/js/utils.js"></script>
|
|
<script src="static/js/keyboard.js"></script>
|
|
</html>
|