mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
adding a love/hate section for funsies, also robots.txt handling
This commit is contained in:
parent
6617ce65d4
commit
41c6c51dd4
1 changed files with 20 additions and 0 deletions
|
@ -41,10 +41,16 @@ bottle.TEMPLATE_PATH.insert(0,
|
|||
@route('/')
|
||||
def index():
|
||||
# Grab site specific information - YAML
|
||||
log.info("oh hi, this is the route?")
|
||||
globals = get_global_variables()
|
||||
return template('index', globals=globals)
|
||||
|
||||
|
||||
@route('/robots.txt')
|
||||
def index():
|
||||
return static_file('robots.txt', root='{0}'.format(WEB_ROOT))
|
||||
|
||||
|
||||
@route('/images/<filename>')
|
||||
def images(filename):
|
||||
return static_file(filename, root='{0}/images'.format(WEB_ROOT))
|
||||
|
@ -58,3 +64,17 @@ def css(filename):
|
|||
@route('/fonts/<filename>')
|
||||
def fonts(filename):
|
||||
return static_file(filename, root='{0}/fonts'.format(WEB_ROOT))
|
||||
|
||||
|
||||
@route('/love')
|
||||
def love():
|
||||
# Grab site specific information - YAML
|
||||
globals = get_global_variables()
|
||||
return template('love', globals=globals)
|
||||
|
||||
|
||||
@route('/hate')
|
||||
def hate():
|
||||
# Grab site specific information - YAML
|
||||
globals = get_global_variables()
|
||||
return template('hate', globals=globals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue