diff --git a/src/routes/index.py b/src/routes/index.py index fcd2106..c1b1e0c 100644 --- a/src/routes/index.py +++ b/src/routes/index.py @@ -1,7 +1,3 @@ -""" -Index page with a list of posts. -""" - from config import Config from flask import Blueprint, render_template @@ -11,5 +7,5 @@ router = Blueprint(name, __name__) @router.route("/") def index() -> str: - """Index page""" + """index page""" return render_template("index.html", config=Config, page_name=name) diff --git a/src/routes/login.py b/src/routes/login.py index 67e749c..0b69ecc 100644 --- a/src/routes/login.py +++ b/src/routes/login.py @@ -1,9 +1,5 @@ -""" -Login page to an account. -""" - from config import Config -from flask import Blueprint, jsonify, render_template +from flask import Blueprint, flash, redirect, render_template, request from werkzeug import Response name = __name__.split(".")[-1] diff --git a/src/routes/read.py b/src/routes/read.py index b8f39b3..8a43487 100644 --- a/src/routes/read.py +++ b/src/routes/read.py @@ -1,7 +1,3 @@ -""" -Read a specific post. -""" - from config import Config from flask import Blueprint, render_template @@ -11,5 +7,5 @@ router = Blueprint(name, __name__) @router.route(f"/{name}") def read() -> str: - """Read page""" + """read page""" return render_template("read.html", config=Config, page_name=name) diff --git a/src/templates/read.html b/src/templates/read.html index 033747d..ae130a8 100644 --- a/src/templates/read.html +++ b/src/templates/read.html @@ -5,12 +5,12 @@ {% include "header.html" %}
-Welcome to the read page
+