We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26756a2 commit f888d5cCopy full SHA for f888d5c
template/js/index.js
@@ -80,7 +80,8 @@
80
des = json.d.replace(reg,'<i class="kw">'+"$1"+"</i>") || '';
81
}
82
83
- str = islist ? '<a href="'+this.root_path+'/c$url$.html"><strong>$name$</strong> - $des$</a><p></p>' : '<a href="'+this.root_path+'/c$url$.html"><strong>$name$</strong> - $des$</a>';
+ var rootp = this.root_path.replace(/\/$/,'');
84
+ str = islist ? '<a href="'+ rootp +'/c$url$.html"><strong>$name$</strong> - $des$</a><p></p>' : '<a href="'+ rootp +'/c$url$.html"><strong>$name$</strong> - $des$</a>';
85
return this.simple(str,{
86
name:name,
87
url:json.p,
0 commit comments