Add repo links, trailing slash on route

This commit is contained in:
Tyler Hallada 2015-08-02 23:17:46 -04:00
parent 8399ef4fed
commit eb6ae0e922
2 changed files with 4 additions and 2 deletions

2
app.py
View File

@ -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)

View File

@ -12,7 +12,7 @@
}
div.footer {
font-size: small;
margin-top: 50px;
margin-top: 4rem;
}
</style>
</head>
@ -33,6 +33,8 @@
<a href="https://pypi.python.org/pypi/inflect">inflect</a>,
<a href="http://eayd.in/?p=232">sylco</a>, and
<a href="https://www.reddit.com/r/datasets/comments/3es1s4/33k_nytimes_and_18k_buzzfeed_facebook_posts_and_a/">BuzzFeed Facebook Posts</a>
<br>
Code at <a href="https://github.com/thallada/nlp">Github</a> and <a href="http://git.hallada.net/nlp/">cgit</a>
</p>
</div>
</body>