From 0db8e99cd3ff59c803ab466b8276445a8e489de5 Mon Sep 17 00:00:00 2001
From: David Coallier
Date: Sun, 6 Feb 2011 18:58:53 +0000
Subject: [PATCH] Added more intelligent link (lack of) recognition
---
js/githubresume.js | 4 ++--
views/resume.html | 8 +++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/js/githubresume.js b/js/githubresume.js
index d81f197..fe13d00 100644
--- a/js/githubresume.js
+++ b/js/githubresume.js
@@ -78,8 +78,8 @@ var run = function() {
since: since
};
- if (data.user.blog !== undefined) {
- view.blog = addHttp + data.user.blog;
+ if (data.user.blog !== undefined && data.user.blog !== null) {
+ view.blog = addHttp + data.user.blog;
}
$.ajax({
diff --git a/views/resume.html b/views/resume.html
index 9685ad2..13bc20f 100644
--- a/views/resume.html
+++ b/views/resume.html
@@ -32,7 +32,7 @@
{{/location}}
with {{repos}} public {{plural}}. I've been using github.com since {{since}}
{{#blog}}
- and sometimes I blog at {{blog}}
+ and sometimes I blog at {{blog}}
{{/blog}}
@@ -84,3 +84,9 @@
+