Skip to content

Commit 1618ebd

Browse files
committed
Merge pull request #445 from strawbrary/edit-link-position
Make position of "Edit on GitHub" link consistent
2 parents 190d099 + 41310af commit 1618ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function githubLinks (options) {
221221
var url = 'https://github.com/nodejs/nodejs.org/edit/master/locale/' + options.locale + '/' + path.replace('.html', '.md')
222222

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

227227
file.contents = new Buffer(contents)

layouts/css/base.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pre
135135

136136
.edit-link
137137
float right
138-
font-size 0.6em
138+
font-size 0.9em
139139
margin 0.5em 0
140140

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

0 commit comments

Comments
 (0)