diff --git a/main.py b/main.py index 08f4478..3df9f04 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,7 @@ import re import os from flask import Flask, render_template, request, send_file, make_response from feedgen.feed import FeedGenerator +from flask_moment import Moment from dotenv import load_dotenv from routes.editor import editor_routes from routes.scrapbook import sp_routes @@ -10,6 +11,8 @@ from classes import * load_dotenv() app = Flask(__name__) +moment = Moment(app) + app.register_blueprint(editor_routes) app.register_blueprint(sp_routes) diff --git a/requirements.txt b/requirements.txt index 87bd431..a75be84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ flask feedgen requests +Flask-Moment python-dotenv \ No newline at end of file diff --git a/static/typography.css b/static/typography.css index 66d8d7d..dfa9116 100644 --- a/static/typography.css +++ b/static/typography.css @@ -36,6 +36,10 @@ h6.chapter a:hover::before { margin-bottom: 0.75em; } +summary > small { + font-size: 0.5em; +} + time { font-family: "Montserrat", sans-serif; font-weight: bold; diff --git a/templates/base.html b/templates/base.html index ce673df..40e333b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@ {% block head %}{% endblock %} + {{ moment.include_moment() }}