Updated website to support a snippet archive.
This commit is contained in:
parent
9224212d49
commit
ef7818e10e
12 changed files with 66 additions and 24 deletions
|
|
@ -93,7 +93,7 @@ def mailinglist_archive(page):
|
|||
page=page, threads=threads)
|
||||
|
||||
|
||||
@app.route('/mailinglist/archives/<int:year>/<int:month>/<int:day>/<slug>/')
|
||||
@app.route('/mailinglist/archive/<int:year>/<int:month>/<int:day>/<slug>/')
|
||||
def mailinglist_show_thread(year, month, day, slug):
|
||||
thread = Thread.get(year, month, day, slug)
|
||||
if thread is None:
|
||||
|
|
@ -101,6 +101,11 @@ def mailinglist_show_thread(year, month, day, slug):
|
|||
return render_template('mailinglist/show_thread.html', thread=thread)
|
||||
|
||||
|
||||
@app.route('/snippets/')
|
||||
def snippets():
|
||||
return render_template('snippets/index.html')
|
||||
|
||||
|
||||
@app.errorhandler(404)
|
||||
def not_found(error):
|
||||
return render_template('404.html'), 404
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue