Skip to content

Commit

Permalink
[fix] Relative link in href
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Aug 28, 2011
1 parent c8ae03a commit 423ecdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/article.js
Expand Up @@ -54,7 +54,7 @@ article.weld = function(dom, articles) {
weld(dom, data, {
map: function(parent, element, key, val) {
if(element.tagName === 'A') {
$(element).attr('href', val);
$(element).attr('href', val.substr(1, val.length-1));
$(element).html(path.basename(val));
return false
}
Expand Down

0 comments on commit 423ecdd

Please sign in to comment.