Browse Source

Add repo links, trailing slash on route

Tyler Hallada 8 years ago
parent
commit
eb6ae0e922
2 changed files with 4 additions and 2 deletions
  1. 1 1
      app.py
  2. 3 1
      templates/buzzfeed-haiku-generator.html

+ 1 - 1
app.py

@@ -10,7 +10,7 @@ def home():
10 10
     return redirect('http://git.hallada.net/nlp/')
11 11
 
12 12
 
13
-@app.route("/buzzfeed-haiku-generator")
13
+@app.route("/buzzfeed-haiku-generator/")
14 14
 def buzzfeed_haiku_generator():
15 15
     haiku = generator.generate_haiku()
16 16
     return render_template('buzzfeed-haiku-generator.html', haiku=haiku)

+ 3 - 1
templates/buzzfeed-haiku-generator.html

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