redsunlib/templates/base.html

42 lines
1.3 KiB
HTML
Raw Normal View History

2020-11-23 13:29:05 +13:00
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
2020-12-21 14:45:26 +13:00
<title>{% block title %}Libreddit{% endblock %}</title>
2020-12-22 05:38:24 +13:00
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2020-11-23 13:29:05 +13:00
<meta name="description" content="View on Libreddit, an alternative private front-end to Reddit.">
2020-12-06 17:54:43 +13:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2021-01-13 17:18:20 +13:00
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
2021-01-30 11:39:03 +13:00
<link rel="stylesheet" type="text/css" href="/style.css">
2020-11-23 13:29:05 +13:00
{% endblock %}
2021-01-01 12:54:13 +13:00
</head>
2021-01-11 15:15:34 +13:00
<body class="
{% if prefs.layout != "" %}{{ prefs.layout }}{% endif %}
{% if prefs.wide == "on" %} wide{% endif %}
2021-01-18 15:11:36 +13:00
{% if prefs.theme != "system" %} {{ prefs.theme }}{% endif %}">
2021-01-04 16:44:44 +13:00
<!-- NAVIGATION BAR -->
2020-12-21 14:45:26 +13:00
<nav>
2021-01-31 11:52:18 +13:00
<div id="logo">
2021-01-06 15:04:49 +13:00
<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-31 11:52:18 +13:00
{% block subscriptions %}{% endblock %}
</div>
2021-01-01 12:54:13 +13:00
{% block search %}{% endblock %}
2021-01-31 11:52:18 +13:00
<div id="links">
<a id="settings_link" href="/settings">settings</a>
<a id="code" href="https://github.com/spikecodes/libreddit">code</a>
</div>
2020-12-21 14:45:26 +13:00
</nav>
2021-01-30 21:33:38 +13:00
2021-01-04 16:44:44 +13:00
<!-- MAIN CONTENT -->
2020-12-09 06:58:36 +13:00
{% block body %}
2020-11-23 13:29:05 +13:00
<main>
{% block content %}
{% endblock %}
</main>
{% endblock %}
</body>
</html>