diff --git a/setup.py b/setup.py index 506840a..01dcd75 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,9 @@ setup( 'Flask-SQLAlchemy', 'Pygments', 'requests', - 'short_url' + 'short_url', + 'psycopg2_binary', + 'nord-pygments' ], extras_require={ 'dev': [ diff --git a/stickynotes/static/custom.css b/stickynotes/static/custom.css index b370cca..406e79e 100644 --- a/stickynotes/static/custom.css +++ b/stickynotes/static/custom.css @@ -27,7 +27,7 @@ body > .container { padding-left: 15px; } -code, kbd, pre, samp { +code, kbd, pre, samp, textarea#source { font-family: 'PT Mono', 'Hack', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } diff --git a/stickynotes/views.py b/stickynotes/views.py index e10f369..37f9dae 100644 --- a/stickynotes/views.py +++ b/stickynotes/views.py @@ -61,12 +61,12 @@ def notes(): """ Show a list of recent notes """ - recent_notes = StickyNote.query\ + notes = StickyNote.query\ .filter(or_(StickyNote.expiry == None, StickyNote.expiry < datetime.utcnow()))\ .filter(~StickyNote.private)\ .order_by(StickyNote.created.desc())\ .limit(10) # noqa - return render_template('notes.html', recent=recent_notes) + return render_template('notes.html', notes=notes) @views.route('/about', methods=['GET'])