Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

forgot to ci this a while ago

  • Loading branch information...
commit 84c6a0b57ca111b067c343a631287160025b0a2f 1 parent 09f6f14
Benjamin Golub authored
View
7 blog.py
@@ -140,6 +140,11 @@ def get(self):
previous=previous)
+class AboutHandler(BaseHandler):
+ def get(self):
+ self.render("about.html")
+
+
class ArchiveHandler(BaseHandler):
def get(self):
entries = db.Query(Entry).order("-published")
@@ -212,6 +217,7 @@ def get(self, tag):
class CatchAllHandler(BaseHandler):
def get(self):
+ self.set_status(404)
self.render("404.html")
def head(self):
@@ -255,6 +261,7 @@ def render(self):
application = tornado.wsgi.WSGIApplication([
(r"/", HomeHandler),
+ (r"/about", AboutHandler),
(r"/archive", ArchiveHandler),
(r"/compose", ComposeHandler),
(r"/e/([\w-]+)", EntryHandler),
View
2  static/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Allow: /
View
11 templates/404.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <script type="text/javascript">
+ var GOOG_FIXURL_LANG = 'en';
+ var GOOG_FIXURL_SITE = 'http://{{ request.host }}/'
+ </script>
+ <script type="text/javascript"
+ src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
+ </script>
+{% end %}
View
13 templates/about.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block title %}{{ _("About") }} - {{ escape(handler.settings["blog_title"]) }}{% end %}
+
+{% block content %}
+ <h2>{{ _("About") }}</h2>
+ <p>
+ {{ _('I am a Software Engineer at <a href="http://www.facebook.com/">Facebook</a>. Before Facebook I was a FriendFeeder (aka Software Engineer) at <a href="http://friendfeed.com/">FriendFeed</a> which was <a href="http://www.facebook.com/press/releases.php?p=116581">acquired</a> by Facebook. I live in Rochester, NY with my fiance and <a href="http://www.flickr.com/photos/benjamingolub/tags/loki">dog</a>.') }}
+ </p>
+ <p>
+ {{ _('Follow me on <a href="http://www.facebook.com/bgolub">Facebook</a> and <a href="http://friendfeed.com/bgolub">FriendFeed</a>. Or email me at <a href="mailto:benjamin.golub@gmail.com">benjamin.golub@gmail.com</a>.') }}
+ </p>
+{% end %}
View
13 templates/base.html
@@ -24,19 +24,22 @@
<div class="box">
<h3>{{ _("Links") }}</h3>
<ul>
+ <li><a href="/about">{{ _("About") }}</a></li>
<li><a href="/archive">{{ _("Archive") }}</a></li>
<li><a href="mailto:benjamin.golub@gmail.com">{{ _("Email") }}</a></li>
<li><a href="http://facebook.com/bgolub">{{ _("Facebook") }}</a></li>
+ <li><a href="http://www.flickr.com/photos/benjamingolub/">Flickr</a></li>
<li><a href="http://friendfeed.com/bgolub">{{ _("FriendFeed") }}</a></li>
</ul>
</div>
{{ modules.RecentEntries() }}
<div class="box" style="color: gray; font-size: 8pt;">
- The opinions expressed on this site are mine and do not
- necessarily represent those of my employer. You won't find any
- confidential company information here, and while you're welcome
- to get in touch with me, I'm afraid I can't put you in contact
- with my employer.
+ The opinions expressed on this site are mine and do not
+ necessarily represent those of my employer. You won't find any
+ confidential company information here, and while you're welcome
+ to
+ <a href="mailto:benjamin.golub@gmail.com">get in touch with me</a>,
+ I'm afraid I can't put you in contact with my employer.
</div>
</td>
</tr>
Please sign in to comment.
Something went wrong with that request. Please try again.