repo: use BranchLink instead of TreeLink (#4366)

This commit is contained in:
Unknwon 2017-06-06 15:50:12 -04:00
parent a851b77ac9
commit 455dc072ba
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2

View File

@ -53,7 +53,7 @@
// Overwrite image method to append proper prefix to the source URL // Overwrite image method to append proper prefix to the source URL
var renderer = new marked.Renderer(); var renderer = new marked.Renderer();
var context = '{{.TreeLink}}'.replace('/src/', '/raw/'); var context = '{{.BranchLink}}'.replace('/src/', '/raw/');
renderer.image = function (href, title, text) { renderer.image = function (href, title, text) {
return `<img src="${context}/${href}"` return `<img src="${context}/${href}"`
} }