libreddit/templates/base.html

40 lines
1.4 KiB
HTML
Raw Normal View History

2020-11-23 01:29:05 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
2020-12-21 02:45:26 +01:00
<title>{% block title %}Libreddit{% endblock %}</title>
<meta http-equiv="Referrer-Policy" content="no-referrer">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; base-uri 'none'; form-action 'self';">
2020-12-21 17:38:24 +01:00
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2020-11-23 01:29:05 +01:00
<meta name="description" content="View on Libreddit, an alternative private front-end to Reddit.">
2020-12-06 05:54:43 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2021-01-13 05:18:20 +01:00
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
2020-11-23 01:29:05 +01:00
<link rel="stylesheet" href="/style.css">
{% endblock %}
2021-01-01 00:54:13 +01:00
</head>
2021-01-11 03:15:34 +01:00
<body class="
{% if prefs.layout != "" %}{{ prefs.layout }}{% endif %}
{% if prefs.wide == "on" %} wide{% endif %}
{% if (prefs.theme == "dark" || prefs.theme =="light") %} {{ prefs.theme }}{% endif %}">
2021-01-04 04:44:44 +01:00
<!-- NAVIGATION BAR -->
2020-12-21 02:45:26 +01:00
<nav>
2021-01-06 03:04:49 +01:00
<p id="logo">
<a id="libreddit" href="/">
<span id="lib">lib</span><span id="reddit">reddit.</span>
</a>
<span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span>
2021-01-06 03:16:32 +01:00
<a id="settings_link" href="/settings">settings</a>
2021-01-06 03:04:49 +01:00
</p>
2021-01-01 00:54:13 +01:00
{% block search %}{% endblock %}
2021-01-17 22:24:44 +01:00
<a id="code" href="https://github.com/spikecodes/libreddit">code</a>
2020-12-21 02:45:26 +01:00
</nav>
2020-12-08 18:58:36 +01:00
2021-01-04 04:44:44 +01:00
<!-- MAIN CONTENT -->
2020-12-08 18:58:36 +01:00
{% block body %}
2020-11-23 01:29:05 +01:00
<main>
{% block content %}
{% endblock %}
</main>
{% endblock %}
</body>
</html>