From eb6ae0e9228c26c85fcc4bf7da7b98651f72f954 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Sun, 2 Aug 2015 23:17:46 -0400 Subject: [PATCH] Add repo links, trailing slash on route --- app.py | 2 +- templates/buzzfeed-haiku-generator.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index a4ee704..6e1a3e5 100644 --- a/app.py +++ b/app.py @@ -10,7 +10,7 @@ def home(): return redirect('http://git.hallada.net/nlp/') -@app.route("/buzzfeed-haiku-generator") +@app.route("/buzzfeed-haiku-generator/") def buzzfeed_haiku_generator(): haiku = generator.generate_haiku() return render_template('buzzfeed-haiku-generator.html', haiku=haiku) diff --git a/templates/buzzfeed-haiku-generator.html b/templates/buzzfeed-haiku-generator.html index e6cd30e..d016e84 100644 --- a/templates/buzzfeed-haiku-generator.html +++ b/templates/buzzfeed-haiku-generator.html @@ -12,7 +12,7 @@ } div.footer { font-size: small; - margin-top: 50px; + margin-top: 4rem; } @@ -33,6 +33,8 @@ inflect, sylco, and BuzzFeed Facebook Posts +
+ Code at Github and cgit