Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function githubLinks (options) {
var url = 'https://github.com/nodejs/nodejs.org/edit/master/locale/' + options.locale + '/' + path.replace('.html', '.md')

var contents = file.contents.toString().replace(/\<h1\>(.+)\<\/h1\>/, function ($1, $2) {
return '<h1>' + $2 + ' <a class="edit-link" href="' + url + '">Edit on GitHub</a></h1>'
return `<a class="edit-link" href="${url}">Edit on GitHub</a> <h1>${$2}</h1>`
})

file.contents = new Buffer(contents)
Expand Down
2 changes: 1 addition & 1 deletion layouts/css/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pre

.edit-link
float right
font-size 0.6em
font-size 0.9em
margin 0.5em 0

@media screen and (max-width: 480px)
Expand Down