Simplification of code to generate the blog link

This commit is contained in:
NumEricR
2011-04-10 17:41:34 +02:00
parent b3202f0f0e
commit c7a6bf6f03

View File

@@ -38,7 +38,7 @@
with <a href="https://github.com/{{{username}}}">{{repos}} public {{plural}}</a>.
I've been using github.com since {{since}}
{{#blog}}
and sometimes I blog at <a href="" id="myblog" title="my blog">{{blog}}</a>.
and sometimes I blog at <a href="{{blog}}" id="myblog" title="my blog">{{blog}}</a>.
{{/blog}}
</p>
<p id="languages" class="enlarge"></p>
@@ -96,9 +96,3 @@
</div><!-- // inner -->
</div><!--// doc -->
<script type="text/javascript">
$(document).ready(function() {
var blog = $('#myblog').html();
$('#myblog').attr('href', blog);
});
</script>