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 @@ +