did stuff
This commit is contained in:
parent
4dc412d9be
commit
e747749e70
@ -1,14 +1,11 @@
|
||||
import os
|
||||
import glob
|
||||
import configparser
|
||||
import random
|
||||
import base64
|
||||
import datetime
|
||||
|
||||
import requests
|
||||
import flask
|
||||
import flask_wtf.csrf
|
||||
import flask_session
|
||||
import waitress
|
||||
import markdown
|
||||
|
||||
@ -32,11 +29,6 @@ app.config['SECRET_KEY'] = base64.b64decode(config["FLASK"]["SECRET"])
|
||||
csrf = flask_wtf.csrf.CSRFProtect()
|
||||
csrf.init_app(app)
|
||||
|
||||
# Session Setup
|
||||
app.config['SESSION_TYPE'] = 'filesystem'
|
||||
app.config['SESSION_FILE_DIR'] = './data/.flask_session/'
|
||||
flask_session.Session(app)
|
||||
|
||||
MUSIC_API_TOKEN = config['AUTH']['MUSIC_API_TOKEN']
|
||||
MUSIC_API_URL = config['NETWORK']['MUSIC_API_URL']
|
||||
statuses = {}
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
import markdown
|
||||
import datetime
|
||||
|
||||
import comment
|
||||
|
||||
class Post:
|
||||
|
||||
category : str
|
||||
@ -13,7 +11,6 @@ class Post:
|
||||
file : str
|
||||
title : str
|
||||
url : str
|
||||
comments : list[dict]
|
||||
|
||||
def __init__(self, file_path):
|
||||
self.file = file_path
|
||||
@ -31,4 +28,3 @@ class Post:
|
||||
self.date_str = self.date.strftime("%B %d, %Y")
|
||||
|
||||
self.body = markdown.markdown(f'# [{self.title}]({self.url})\n' + ''.join(lines[7:]), extensions=['footnotes'])
|
||||
self.comments = comment.get_comments(self.title)
|
||||
|
||||
38
app/static/style2.css
Normal file
38
app/static/style2.css
Normal file
@ -0,0 +1,38 @@
|
||||
@import url('https://fonts.googleapis.com/css?family=PT%20Mono:700|PT%20Mono:400');
|
||||
|
||||
.post img {
|
||||
width: 50%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-family: 'PT Mono';
|
||||
background-size: cover;
|
||||
text-align: center;
|
||||
color: white;
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
margin: 1em 0;
|
||||
padding: 0.5em;
|
||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
.post h1 {
|
||||
font-family: Georgia, 'Times New Roman', Times, serif;
|
||||
font-weight: 100;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.post h2 {
|
||||
font-family: Georgia, 'Times New Roman', Times, serif;
|
||||
font-weight: 300;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.post-date {
|
||||
float: right;
|
||||
}
|
||||
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<header>
|
||||
<link rel="shortcut icon" href="index_favicon.ico">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style2.css') }}">
|
||||
<title>0x01fe.net - {{ title }}</title>
|
||||
</header>
|
||||
<body>
|
||||
@ -12,15 +12,15 @@
|
||||
</div>
|
||||
<div class="container">
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<a href="/"><u>Home</u></a><br>
|
||||
<a href="/category/games/">Games</a><br>
|
||||
<a href="/music/">Music</a><br>
|
||||
<a href="/category/motion-pictures/">Motion Picture</a><br>
|
||||
<a href="/programming/">Programming</a><br>
|
||||
<a href="/about/">About</a><br>
|
||||
<a href="/login/">Login</a>
|
||||
</div>
|
||||
<h1>Stuff</h1>
|
||||
<ul class="sidebar">
|
||||
<li><a href="/"><u>Home</u></a></li>
|
||||
<li><a href="/category/games/">Games</a></li>
|
||||
<li><a href="/music/">Music</a></li>
|
||||
<li><a href="/category/motion-pictures/">Motion Picture</a></li>
|
||||
<li><a href="/programming/">Programming</a></li>
|
||||
<li><a href="/about/">About</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Main Page -->
|
||||
<!-- Get it? D-Log? Like digital log? -->
|
||||
@ -32,7 +32,6 @@
|
||||
</div>
|
||||
{{ post.body|safe }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user