http: Add the HTTP_ROOT config option and a function that uses it
HTTP_ROOT is the server's root directory to serve from, in case your domain uses something else. This is also added to the HTML templates. Also added a news.html template for any sitewide news. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
{% block head %}
|
||||
{% endblock head %}
|
||||
<title>
|
||||
4chan bans archive -
|
||||
{% block title %}
|
||||
{% endblock title %}
|
||||
{% endblock title %} -
|
||||
{{ config.HTTP_DOMAIN }}
|
||||
</title>
|
||||
<style>
|
||||
|
||||
@@ -50,7 +52,7 @@ header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bans-table {
|
||||
table {
|
||||
border-top: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
border-right: 1px solid black;
|
||||
@@ -62,13 +64,13 @@ header {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#bans-table td {
|
||||
table td {
|
||||
border-left: 1px solid black;
|
||||
padding: 5px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#bans-table th {
|
||||
table th {
|
||||
width: auto;
|
||||
border-left: 1px solid black;
|
||||
background-color: #fca;
|
||||
@@ -77,7 +79,7 @@ header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#bans-table tr {
|
||||
table tr {
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
@@ -171,7 +173,7 @@ header {
|
||||
{% endblock header %}
|
||||
</header>
|
||||
<nav>
|
||||
[ <a href="/bans">Home</a> / <a href="/bans/faq">FAQ</a> ]
|
||||
[ <a href="{{route_url("/")}}">Home</a> / <a href="{{route_url("/news")}}">News</a> / <a href="{{route_url("/faq")}}">FAQ</a> ]
|
||||
</nav>
|
||||
<main>
|
||||
{% block main %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}4chan bans archive FAQ - hiddenservice.cc{% endblock title %}
|
||||
{% block title %}FAQ{% endblock title %}
|
||||
|
||||
{% block style %}
|
||||
<style>
|
||||
@@ -19,6 +19,7 @@
|
||||
{% endblock style %}
|
||||
|
||||
{% block main %}
|
||||
<h2>FAQ</h2>
|
||||
<div class="infobox">
|
||||
<h4>What is this place?</h4>
|
||||
<p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}4chan bans archive - hiddenservice.cc{% endblock title %}
|
||||
{% block title %}Bans{% endblock title %}
|
||||
|
||||
{% block main %}
|
||||
<div id="search">
|
||||
|
||||
21
chanbans/templates/news.html
Normal file
21
chanbans/templates/news.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}News{% endblock title %}
|
||||
|
||||
{% block main %}
|
||||
<h2>News</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Item</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{# More news items go here... #}
|
||||
{# 2023-08-02 #}
|
||||
<tr>
|
||||
<td>2023-08-02</td>
|
||||
<td>Site is launched. Happy to have you here.</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock main %}
|
||||
Reference in New Issue
Block a user